Header Files
- conio.h: CONsole Input Output (getch, clrscr)
- stdio.h: STanDard Input Output (scanf, printf)
- math.h: Mathematical functions (pow, sqrt, sin, cos, exp)
- string.h: Character & string functions (char, strlen, String)
THERE ARE MANY OTHER HEADER FILES IN C
ALL ARE USABLE ACCORDING TO REQUIREMENTS
Print this line: “This is a test.”
#include<conio.h>
#include<stdio.h>
void main()
{
clrscr();
printf(“This is a test.”);
getch();
}
Print the addition result of 3 & 5.
#include<conio.h>
#include<stdio.h>
void main()
{
clrscr();
int a=3,b=5,c=0;
c=a+b;
printf(c);
getch();
}