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 '11 at 13:02
  • 1
    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 '13 at 10:28

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...

| improve this answer | |
  • 2
    Had a feeling it might have been C. ;) – TeaDrinkingGeek Mar 21 '11 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 '11 at 11:50
  • 8
    :P same article says "Hello World" was first used in B in 1972 rather than C 1974. – Ranger Mar 21 '11 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 '11 at 12:48
  • 3
    It originated in Kernighan's B tutorial. – greyfade Mar 21 '11 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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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