This document presents information about header files. It defines a header file as a file containing function and variable declarations without definitions that allows code to reference these elements. There are two types of header files: pre-existing files provided by the compiler and user-defined files. It lists some common standard header files like stdio.h for input/output, conio.h for console I/O, and math.h for math functions. It provides examples of functions from these headers like printf() and scanf() for input/output and getch() and clrscr() for console functions. It provides a short code example demonstrating the use of these functions.
This document presents information about header files. It defines a header file as a file containing function and variable declarations without definitions that allows code to reference these elements. There are two types of header files: pre-existing files provided by the compiler and user-defined files. It lists some common standard header files like stdio.h for input/output, conio.h for console I/O, and math.h for math functions. It provides examples of functions from these headers like printf() and scanf() for input/output and getch() and clrscr() for console functions. It provides a short code example demonstrating the use of these functions.
This document presents information about header files. It defines a header file as a file containing function and variable declarations without definitions that allows code to reference these elements. There are two types of header files: pre-existing files provided by the compiler and user-defined files. It lists some common standard header files like stdio.h for input/output, conio.h for console I/O, and math.h for math functions. It provides examples of functions from these headers like printf() and scanf() for input/output and getch() and clrscr() for console functions. It provides a short code example demonstrating the use of these functions.
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?