Difference between revisions of "Hello, world"
From Computer History Wiki
					
										
					
					m (→External links:  Link to the actual doc whose title is given; Update Bell Labs URLs (blast Nokia))  | 
				m  | 
				||
| Line 1: | Line 1: | ||
'''Hello World''' is the canonical 'shortest example [[program]]' in any given [[programming language]]; a program which simply prints 'hello, world', and then terminates.  | '''Hello World''' is the canonical 'shortest example [[program]]' in any given [[programming language]]; a program which simply prints 'hello, world', and then terminates.  | ||
| − | The first version appeared in "''A Tutorial Introduction to the Programming   | + | The first version appeared in "''A Tutorial Introduction to the Programming Language [[B programming language|B]]''":  | 
<pre>  | <pre>  | ||
Latest revision as of 11:45, 13 June 2025
Hello World is the canonical 'shortest example program' in any given programming language; a program which simply prints 'hello, world', and then terminates.
The first version appeared in "A Tutorial Introduction to the Programming Language B":
main( ) {
 extrn a, b, c;
 putchar(a); putchar(b); putchar(c); putchar('!*n');
}
a 'hell';
b 'o, w';
c 'orld';
It was popularized with one in the 'C Tutorial' in UNIX V6:
main() {
	printf("hello, world");
}
External links
-  S. C. Johnson, B. W. Kernighan, The Programming Language B
- B. W. Kernighan, A Tutorial Introduction to the Programming Language B
 
 - Brian W. Kernighan, Programming in C - A Tutorial