Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

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

share|improve this question
8  
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

2 Answers 2

up vote 13 down vote accepted

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

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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