Computer Languages and Hello World

Mar 31st, 2010

Have you ever wondered why Hello World seems to always be the first program that you learn in any computer programming language? Well, there are a lot of reasons why but here are a few quick ones:

  • It’s as basic of a program as you can write, just echo some words back onto the screen.
  • It’s a sanity check to make sure that the compiler actually is working properly
  • It’s been a tradition since 1974

The History of Hello World

Small test programs that are simple to write have really been around since the development of the modern day computer.  However, the first know usage of the phrase “Hello world!” in a programming tutorial came from the much revered book The C Programming Language by Brian Kernighan and Dennis Ritchie originally of Bell Laboratories.  The book was first released in 1978.  The example in the book prints “hello, world” without any capitalization or punctuation.  Mr. Kernighan actually first used the simple “Hello world!” program in an internal memo that circulated around Bell Laboratories in 1974.

This is the version from the book:

 int main()
        printf("hello, world");
        return 0;

Actually Mr. Kernighan was also responsible for the first usage of the words “hello” and “world” together in a computer instruction manual. This was his 1972 book titled Tutorial Introduction to the Language B.

This was the version that he used in the B language:

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

So you can see that the traditions of using “Hello world!” in programming tutorials is now several decades old. So as you pick up a new programming language and start with the inevitable “Hello world!” remember Mr. Kernighan and whisper a quick thanks to the pioneers in the field of computer programming.

Post to Twitter Post to Delicious Delicious Post to Digg Digg This Post to Facebook Facebook Post to Reddit Reddit Post to StumbleUpon Stumble This

Did you enjoy this article?

AddThis Social Bookmark Button

12 Responses to “ Computer Languages and Hello World ”

  1. DARYL says: Canadian Health&Care.Special Internet Prices.Best quality drugs.No prescription online pharmacy. Low price pills. Buy drugs online

    Buy:Zovirax.Nexium.Mega Hoodia.Human Growth Hormone.Retin-A.Prevacid.Synthroid.Arimidex.Prednisolone.100% Pure Okinawan Coral Calcium.Actos.Zyban.Petcam (Metacam) Oral Suspension.Lumigan.Valtrex.Accutane….

  2. Chantelle says:


    really good article. Ready to hear more next week,my blog Many Thanks….

  3. Richelle says:


    really good article. Ready to hear more next week,my blog Many Thanks….

  4. Frederic says:

    really good article…

    I have spent a bit of time going through your posts, more than I should have but I must say, its worth it! many Thanks….

  5. Ehantelle says:


    Hello there just quality post! ,i had a great read.thank you for your article,My problem has been resolved….

  6. Kugenie says:

    very helpful…

    I preferred to thank you for this good article. I by all odds liked every little bit of it…

  7. sander says:


    It’s such a great site! Great post, I just bookmarked it on Digg….

  8. Cander says:

    Great One…

    I must say, its worth it! My link! ,thanks haha…

  9. ALEJANDRO says:

    GENERIC PHARMACY : -==== Thyroid Pills ====-

    Purchase Cheap Generic Drugs Now!…

  10. Jay says:” rel=”nofollow”>.…

    tnx for info!!…

Leave a Reply