Saturday, April 14, 2012

Hello World

I will start off by writing the most important piece of code that I write whenever I get introduced to a new language. The "Hello World!!!" program. It is a program written by most of the programmers in the world. So yes, it is one of the simplest programs that you can write as well.

I will be using the visual studio compiler for compiling and running this program.


/***************************************************************
    Program to print Hello World to screen
***************************************************************/

#include <stdio.h>

int main(int argc, char* argv[])
{
    printf("Hello World\n");
    
    return 0;
}

/**************************************************************
Output:
E:\VSProjs\blog>1_HelloWorld.exe
Hello World
**************************************************************/

No comments:

Post a Comment