Header files in 'C' programming for SEE and NEB
Syntax:
#include <file>
Or,
#include "file"
Some header
files are given below:
Header files |
Functions |
Supported commands |
<stdio.h> |
It
contain the function definition of input output functions. |
printf(),
scanf(), gets(), puts() etc. |
<conio.h> |
It
is used to console input output. |
getch(),
clrscr() etc. |
<string.h> |
It
is used to string processing functions. |
strlen(),
strcpy(). strlwr(), strcat(), strcmp() etc |
<math.h> |
It
is used to solve the mathematical calculation. |
Sqrt(),
sin(), cos(), pow(),log() etc. |
<graphics.h> |
It
is used to execute the graphics commands. |
line(),
circle(), rectangle() etc. |
<ctype.h> |
It
is used for character handling or testing characters. |
isupper(),
islower(), isalpha() |
void main() { } : It is a Function Name.
It marks the beginning of the program that gets executed when the program is run.
Example:
printf(“Welcome to C programming\n”); It is an executable statement.
This statement calls the function name printf with the help of header file <stdio.h>. printf function displays the message “Welcome to C programming”. This message shown to be output is enclosed within double quotes and every statement of ‘C’ programming should be terminated by semicolon.
No comments:
Post a Comment