C Language: Snehal Patil
C Language: Snehal Patil
Snehal Patil
Introduction
#include<stdio.h>
#include<conio.h>
Void main()
{
statement;
}
Commands
Pre-processor commands-
1. #include<> is a preprocessor command and is generally the very
first statement of any C program.
Header files-
1. #include<stdio.h>
2. #include<conio.h>
Header files include definitions of functions and
variables which help us to write our program code easily by providing some
very useful readymade functuins.
Main function
Void main()-
1. It is the entry point for execution in C program.
2. The void is a keyword that represents function will not
return any value.
Concepts-
Printf()- Scanf()-
1. Stands for print formatted Function that reads formatted
2. This function is used to print data from stdin.
the
character,string,float,integer,
octal and hexadecimal values
onto the output screen.
Functions-
getch() clrscr()
1. Stands for ‘get character.’ 1. Used to clear the console
2. Used to hold the output screen screen.
until the user presses on the
keyboard.
Keywords-
1.int
2.char
3.float for
17.
4.double const
18.
5.void if
19.
6.auto else
20.
7.register enum
21.
8.return Signed
22.
9.extern Unsigned
23.
goto
10. Static
24.
break
11. Size
25. of
continue
12. Short
26.
do
13. Struct
27.
switch
14. Union
28.
case
15. Typedef
29.
While
16. Volatile
30.
Default
31.
long
32.
Explanation