Hello World Program in C

Here we will write our first C program. A Hello World program.

Program:

#include <stdio.h>

int main() 
{
    printf("Hello World!");
    return 0;
}

Know it:


If you have written the above program same as in the source code without making any mistake then it should print Hello World! on the screen.
View next C tutorial Declaring variables in C.

Labels: , ,