Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 9

presentation of practice and principle of algorithm

topic: concept of header file

presented by: presented to:


palak nisha pandey
sandeep goel
BCA-1-A
content:-
definition of header file
types of header file
various system of header file
functions
function of syntax
example thier syntax
definition of header file
A header file in programming contains declaration of functions,
variables,and other elements without defining thier actual
implementation. it allows source code files to refrence these
declarations,enabling code organisation and modularity.
TYPES OF HEADER FILE
there are two type of header files:-

a.PRE-EXISTING HEADER FILE-


files which are already available in compiler we just need to
import them.
b. USER- DEFINED HEADER FILE-
these files are defined by the user and can be imported using
“#include”.
various system of header file
NAME:- FUNCTION:-
<stdio.h> input/output function
<conio.h> console input/output
<math.h> mathematics function
<time.h> date and time function
<string.h string function
<complex.h> a set of function for
manipulating complex
<ctype.h> numbers
character handling
<stdio.h>
this language provides many standard library function for file input
and output.

function description

printf() this function is used to


print the character,
string,float,integeronto the
scanf() output screen.
this fiunction is used to
read a character string
numeric data from key
board.
<conio.h>
it is used in c programming cantains functions for console
input/output.

function discriptions

clrscr() this function is used to


cleaar the out put screen.
getch() it reads character from key
board.
EXAMPLE OF PRINTF(),SCANF(),GETCH(),
AND CLRSCR() FUNCTIONS.
#include<stdio.h>
#include<conio.h>
void main()
{int num1,num2,sum;
clrscr();
printf(“enter any two number”);
scanf(“%d%d” ,&num1,&num2);
sum=num1+num2;
printf(“sum=%d”,sum);
getch();
}
 ANY QUESTION?

You might also like