How to print “Hello Word” in C Language.

Here we will learn that how to print “hello word” in c language.

If you have basic knowledge about c language then it is easy.

Let’s Start

#include<stdio.h>

int main()

{
printf(“hello word”); //printf function is used to display the message/output/anything on the screen

return 0;

}

Output:

hello word

Explanation:

1.Here #include<stdio.h> is preprocessor command which tells the compiler that are using the content /function of stdio.h.

printf() and scanf() functions are defined in the “stdio.h” library.

printf() funcation is used to display the output/write the output

scanf() funcation is used to read the input.

2.int main(),It is the starting point of the program ie you cannot write the program without the “main” funcation.And “int” is the return type it may void,double etc.

3.printf() funcation is used to display the message/output/anything on the screen

4.return 0 means simply end the program without returning anything.

sumankumar80

Hello Friends,I have written and developed this website because you can learn technology easily ,prepare for the placement and also for the any type of examination . By :Suman Kumar

Leave a Reply

Your email address will not be published. Required fields are marked *