Home  |  Contact   
You are viewing: general info Posts

The History of “Hello World”

January 31st, 2008 by Vineet | No Comments »

Almost all of you who have studied even a little bit of programming must identify these words “hello world”. I am pretty sure the first program you read printed these words on the screen.

The first known instance of the usage of the words “hello” and “world” together in computer literature occurred earlier, in Kernighan’s 1972 Tutorial Introduction to the Language B, with the following code:


main( ) {
extrn a, b, c;
putchar(a); putchar(b); putchar(c); putchar('!*n');
}
a 'hell';
b 'o, w';
c 'orld';

Then it was used as the first program in the famous book “The C programming Language” by Kernighan and Ritchie.
The code is below :

main() {
printf("hello, world\n");
}

For a detailed information on Hello World programs check out this link on wikipedia

It’s not necessary to have a big thing to make history !!!

Topics: Coding Email This Email This
AddThis Social Bookmark Button