Syntax:

#include:-Its type of preprocessor directive that is used of include header file in a program.
there is no space between # and include.
It is written as first statement in source code.
Syn:-
#include<header file>
eg:-#include<math.h>
#include<stdio.h>
#include"stdio.h"
#include"math.h"
*Header file:-It is special type of file that contains predefined extension of header file is ".h"
There are some header file in C language.
main():-It is an entry point in which we write source code according to requirement the execution
of program is started with from main function. It is a user defined function.
i) main()
{
block statement;
}
ii) void main()
{
block statement;
}
iii) int main()
{
block statement;
return(0);
}
Note:-Void is a keywords that is used to specify non return type function.
ii)main function:-It is return default integer value.
clrscr():- It stands for clear screen. It is use to clear the previous output on the consol.
It is avilable in "conio.h" header file.
syn:- clrscr();
getch():-This function is used to input single character at a time.
It is avilable in "conio.h" header file.
syn:- getch()'
#How to write C program?
We open any compiler of c for writing c program there are many compilers like Turbo C, Borland DevC, Microsoft visual C.
#How to save c program?
It must be saved with ".c" extension.
#Working Process of c program.


#include:-Its type of preprocessor directive that is used of include header file in a program.
there is no space between # and include.
It is written as first statement in source code.
Syn:-
#include<header file>
eg:-#include<math.h>
#include<stdio.h>
#include"stdio.h"
#include"math.h"
*Header file:-It is special type of file that contains predefined extension of header file is ".h"
There are some header file in C language.
No. | Name | Description |
1 | "stdio.h" | Input/Output Functions |
2 | "conio.h" | console input/output |
3 | "assert.h" | Diagnostics Functions |
4 | "ctype.h" | Character Handling Functions |
5 | "cocale.h" | Localization Functions |
6 | "math.h" | Mathematics Functions |
7 | "setjmp.h" | Nonlocal Jump Functions |
8 | "signal.h" | Signal Handling Functions |
9 | "stdarg.h" | Variable Argument List Functions |
10 | "stdlib.h" | General Utility Functions |
11 | "string.h" | String Functions |
12 | "time.h" | Date and Time Functions |
of program is started with from main function. It is a user defined function.
i) main()
{
block statement;
}
ii) void main()
{
block statement;
}
iii) int main()
{
block statement;
return(0);
}
Note:-Void is a keywords that is used to specify non return type function.
ii)main function:-It is return default integer value.
clrscr():- It stands for clear screen. It is use to clear the previous output on the consol.
It is avilable in "conio.h" header file.
syn:- clrscr();
getch():-This function is used to input single character at a time.
It is avilable in "conio.h" header file.
syn:- getch()'
#How to write C program?
We open any compiler of c for writing c program there are many compilers like Turbo C, Borland DevC, Microsoft visual C.
#How to save c program?
It must be saved with ".c" extension.
#Working Process of c program.

No comments:
Post a Comment