C Programming First Hello World Program
Hello World Program in C language
#include <stdio.h>
main(){
printf("Hello World");
}
This may be the first program of almost all of the programmers in the world and it is a welcoming the world in programming. That is the Hello World program.
Demonstration:
In Line 1:
#include <stdio.h>
stdio.h is the header file and we include it using #include commandIn Line 2:
main(){..}
main() is the function for wait every C program wait until a main function has occurred.In Line 3:
printf("Hello World");
printf() is the function what prints the passing value inside it. We have passed "Hello World" and it simply will print Hello World.Having any problem to understand the Hello World C program, please comment below and it will be cleared, promise.
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment