C Programming Language Tutorial
What is C Programming
C Language is most popular and widely used programming language. C language is basic language of all other programming languages so also knows as mother language. that directly interact with the hardware devices like kernel and drivers.
- C is a Procedural language because solve the programming problem in step by step. C language break the program into function.
- C is a Structured language because break a program into several parts and blocks so that easy to understand this program.and break the program into several parts and blocks using function.
- C is a Mother language because base for other programming language.C language is also considered a several concepts like function, constructor, pointer etc.
- C is a Mid -level language bcz consider the feature of low-level and high-level programming language. C support low level language bcz consider pointer arithmetic .C support high level language bcz it is a machine independent.
- C is a System Programming language bcz used to create system software.C create a hardware device, OS,drivers.
History Of C Language

C programming language was developed in 1972 by Dennis Ritchie at bell laboratories of AT&T(American Telephone & Telegraph),located in the U.S.A.
Features Of C Programming Language
Features are as follows:-
- Fast Speed:- Program execution and compilation time very fast in c language.
- Simple:- c is a simple language bcz break the programming problem into parts.
- Rich library:- C language provide a many inbuilt function.
- Structured language:-C is structured programming because break a program into several parts and blocks so that easy to understand this program.and break the program into several parts and blocks using function.
- Memory Allocation:- C consider a dynamic memory allocation It allocate the memory at run time. DMA function like malloc(), calloc(), realloc(), free().
- Mid-level language:- C is a Mid -level language bcz consider the feature of low-level and high-level programming language. C support low level language bcz consider pointer arithmetic.C support high level language bcz it is a machine independent.
- Platform Dependent:- Before you know about Platform Dependent And Independent. We must know about Platform. Platform:-Any hardware or software environment in which a programs runs,is knows as a platform. So C is a Platform Dependent language bcz all programs are run in specific OS(Operating System) like Turbo C.
- Extensible:-C is extensible bcz it can easily access new feature.
- Pointer:- C provide a features of pointer.pointer in C language is a variable stores the address of another pointer variable.
- Recursion:- It provide a code re usability for all function.and provide the feature of call to itself.
#include<stdio.h>
#include<conio.h>
void main()
{
printf("Hai");
return 0;
getch();
}
How to compile and run c program.
alt+f9 compile the program.
ctrl+f9 run the program.
Press Esc key return to the turbo c console.
#:- Denote the preprocessor directive. predefined processor are already define in C library. this is used for define the header file and also used for include the value.
include:-include the all header files in program.
# include<stdio.h> includes the standard input output library functions. printf() function is defined in stdio.h header file.
#include<conio.h> include the console input output library function. getch() function is defined in conio.h header file.
Clrscr(); :- clear the screen
void main():- void keyword specifies that it return no value. main() function is the entry point of every program.
printf():- This function is used to print the data. this is a predefine function of <stdio.h> header file.
void main():- void keyword specifies that it return no value. main() function is the entry point of every program.
printf():- This function is used to print the data. this is a predefine function of <stdio.h> header file.
scanf():- This function is used for input the value.
this is also a predefine function of <stdio.h> header file.
return 0:-the return 0 statements returns execution status to the operating system.value 0 is successful execution and value 1 for unsuccessful execution.
getch():-The getch() function ask for a single character. Until you press any key, it blocks the screen.
About figure of compiler
1.Source code:-source code is a typical English language code which is written by programmer.
2. Preprocessor:- Preprocessor that use for translate higher level language in pure high level language.
3.Compiler:-Compiler that convert source code into object code object code is a code that can execute by compiler.
4.Linker:-Linker use for convert object code in executable code that can stored in memory in machine language.
5.Loader:- Loader is use to load machine language code in memory
6.Assembler:- assembler is also a language interpreter that convert the symbolic language in machinery executable language.
return 0:-the return 0 statements returns execution status to the operating system.value 0 is successful execution and value 1 for unsuccessful execution.
getch():-The getch() function ask for a single character. Until you press any key, it blocks the screen.
1.Source code:-source code is a typical English language code which is written by programmer.
2. Preprocessor:- Preprocessor that use for translate higher level language in pure high level language.
3.Compiler:-Compiler that convert source code into object code object code is a code that can execute by compiler.
4.Linker:-Linker use for convert object code in executable code that can stored in memory in machine language.
5.Loader:- Loader is use to load machine language code in memory
6.Assembler:- assembler is also a language interpreter that convert the symbolic language in machinery executable language.
WAITING FOR NEXT TOPIC
thank u di
ReplyDelete