#include<stdio.h>
#include<conio.h>
main()
{printf("My First C program");
getch();
}
output-:My First C program
- In above program the first character is #,it is known as C pre-processor,to get more about pre-processor CLICK HERE.
- Then there are two header files "stdio.h" and "conio.h",to learn more about header files CLICK HERE.
- Now there is main() function it is the entry point of any C program. It is the point at which execution of program is started. When a C program is executed, the execution control goes directly to the main() function. Every C program must have a main() function.
- printf() is used to display message or the data stored in any variable on console.
- getch() is used to hold the console screen. The black screen,where we see output,that screen is hold by getch() function.
- To compile program press Alt+F9 and to run program press Ctrl+F9.
let start c programming..
ReplyDelete