We write the first program in C programming Language so that try to figure out each and every facts belows:
program-
#include< stdio.h>
void main()
{
printf("Hello World");
}
output-
Hello World
-In this program, firstly we include the
stdio.h(standard input/output) heador file.
-then we write the
main() function.
-and
printf() function are use to print the statement i.e. "Hello World" on the console screen.
-Execution of this program is starts with the
main() function. and then executes line by line.
-Here printf() is a Build-In function define in stdio.h
What is Void ?
- Here void is simply refers as : No return type.
- We also use some other data type at place of the void.