Hello World in c language explained

 Program:

#include<stdio.h>
int main()
{
/*my first C program*/
print("Hello world!");
return 0;
}

 Output:



#include<stdio.h>

First line #include<stdio.h> is a preprocessor command which tells the compiler to include standard input-output file  stdio.h


int main()

int main() is the main function where the execution of the program begins.


comment

/*......*/ This line is called as a comment. This will be ignored by the compiler it is used for our understanding purpose. Used to guide the user.


print()

print() is used to print the required output on the screen




Previous Post Next Post