Hello, world

From Computer History Wiki
Revision as of 07:10, 20 June 2023 by Larsbrinkhoff (talk | contribs) (Earlier B version.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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