In this C program, we will learn how to write a program to print "Hello World!". In this program, we are displaying the message using printf
function.
Here is the code of the program to print "Hello World!"
/*C Program To Print "Hello World!"*/
#include <stdio.h>
int main(){
printf("hello world!"); // displays Hello, World! on the screen
return 0;
}
hello world!
--------------------------------
Process exited after 0.02087 seconds with return value 0
Press any key to continue . . .
Comments