//your first c program
#include<stdio.h> //to include standard input output header file
#include<conio.h> //to include console input output header file
void main() //void main this is called main function
//as there are many functions in c language
{ //{ indicates starting point of block or function
clrscr(); //to clear the previous screen in turbo c3
printf("Hello"); //this is the text to print on screen
getch(); //prompts the user to press a character and
//that character is not printed on screen,
//getch header file is conio.h.
} //{ indicates end point of block or function
#include<stdio.h> //to include standard input output header file
#include<conio.h> //to include console input output header file
void main() //void main this is called main function
//as there are many functions in c language
{ //{ indicates starting point of block or function
clrscr(); //to clear the previous screen in turbo c3
printf("Hello"); //this is the text to print on screen
getch(); //prompts the user to press a character and
//that character is not printed on screen,
//getch header file is conio.h.
} //{ indicates end point of block or function
No comments:
Post a Comment