Ticker

6/recent/ticker-posts

Write a program to display the message HELLO WORLD


Here we will write a C programs to display Hello World on the screen. In this program we are displays the Hello World message on the screen. it is a basic program and most simplest program in C programming


#include –it is a header file. This statement tells compiler to include this stdio.h header file in the program. This file is a standard input output file that contains the definitions of input output functions such as scanf() and printf(). In the above program we are using printf() function, so we are required this header file. 

void main() – Here main() is the function name it is built-in function. Every C program must have this function because the execution of program begins with the main() function. it may be void main(), int main() 

printf("") : This function is mainly used to print the character, float, integer, string, octal and hexadecimal values on the output screen. This function displays the content within double quotes as it is on the screen.

Post a Comment

0 Comments

Ad Code

Join our New Telegram Channel