Write a program to display message.

c language
#include<stdio.h>
#include<conio.h>
 main()
{
	printf("NESARK");
}
/*This program uses the standard library function printf() to display the message "NESARK" on the screen.*/

The above program is a simple C program that displays the message “NESARK” on the screen. It consists of two parts: the preprocessor directives and the main function.

The first line, #include , is a preprocessor directive. It tells the compiler to include the contents of the standard input/output header file (stdio.h) in the program. This header file contains the declarations of the functions that are used for input and output operations, such as printf(), which is used in this program to display the message on the screen.

The line printf(“NESARK”); is the only statement inside the main function. It uses the printf() function to display the message “NESARK” on the screen. The string “NESARK” is passed as an argument to the printf() function.

When the above program runs, it displays the message “NESARK” on the screen.

Thanks.

Write a program to display message.

Leave a Reply

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

Scroll to top