C Hello World

Hello future programmer, welcome to your first C program. Don’t think about installation now as it will be discussed in the next chapter. We don’t want you to get bored, so relax and see the following code snippet.


Code

// C Hello World Program
#include<stdio.h>
int main(void)
{ 
    printf("Hello World!"); 
    return 0;
}

Output

Hello World!

Pretty easy right? If you have a c compiler installed in your PC then try running or else move onto the next chapter to learn to install C compiler in your system.


Trending

C Programming

Remember to follow community guidelines and don't go off topic.