Which programming language first introduced 'Hello World' as a first program to code for beginners?

  • 10
    On an related question, the first programming language that introduced "Good bye cruel World" was Java ;) (I'm kidding)
    – Darknight
    Mar 21, 2011 at 13:02
  • 2
    How does this question contribute anything or is use full ? and How does it shows "research efforts" when clearly answers cite wikipedia ?
    – Pheonix
    Jul 15, 2013 at 10:28

2 Answers 2


The history section of the Wikipedia article indicates it came from C.

...the tradition of using the phrase "Hello, world!" as a test message was influenced by an example program in the seminal book The C Programming Language. The example program from that book prints "hello, world" (without capital letters or exclamation mark), and was inherited from a 1974 Bell Laboratories internal memorandum by Brian Kernighan, Programming in C: A Tutorial...

  • 2
    Had a feeling it might have been C. ;) Mar 21, 2011 at 11:49
  • +1 for Wikipedia's content, but i always believe "Hello World" was author's (Programming authors) stuff rather than any language's specific.
    – Ranger
    Mar 21, 2011 at 11:50
  • 8
    :P same article says "Hello World" was first used in B in 1972 rather than C 1974.
    – Ranger
    Mar 21, 2011 at 11:52
  • 2
    B and C aren't different versions of the same language; C was a new language based on B.
    – Jason S
    Mar 21, 2011 at 12:48
  • 3
    It originated in Kernighan's B tutorial.
    – greyfade
    Mar 21, 2011 at 15:57

The convention was introduced for the general public in K&R - Kernigan and Richie: The C Programming Language - which is the canonical introduction to C. That book became the canonical because it was succinct reflecting in its thinness.

The updated version covering ANSI C is worth reading simply for their approach to writing documentation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.