What is header file? write the use of header file.

A header file is a.h extension file that contains declarations of C function and macro definitions to be shared between multiple source files. There are two types of header files: the files written by the programmer, and the files that follow the compiler.

Header files
<stdio.h> = it is standard input output header file. it contain the function definition of input output functions.
supported commands
printf()
scanf()
gets()
puts()

<conio.h> = it is used for console input output
supported commands
getech()
clrscr()

<string.h> = it is used for string processing functions
supported commands
strlen()
strcpy()
strwr()
strcat()
strmp()

<math.h> = it is used for mathematical operations
supported commands
sqrt()
sin()
cos()
pow()
log()

<graphics.h> = it is used for process the graphics functions
supported commands
line()
circle()
rectangle()

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *