C Programming First Hello World Program

No comments

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.

C Programming First Hello World Program



Demonstration:


In Line 1: 
#include <stdio.h>
stdio.h is the header file and we include it using #include command

In 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.


No comments :

Post a Comment