Brian Kernighan’s Hello World.

By Posted in - Code on November 12th, 2012 image45

(Picture of Brian Wilson Kernighan)

As I have completely overhauled my site, I thought it only fitting to begin with a Hello World post…

One of the very first things that a newbie learns is, “Hello World!” It is a tradition, a means of passage as one enters into the computing world. The first known version was from Brian Kernighan’s “Tutorial Introduction to the Language B”;, in 1972.
He wrote:

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

In 1972, in an internal Bell Laboratories memo, he wrote, “Programming in C: A Tutorial”, containing:

<code>
main( ) { 
  printf("hello, world"); 
}
</code>

Feel free to comment with your language’s way of saying “Hello World”. I would love for this post to contain any way imaginable to say “Hello World”.

Please leave a Comment...