License Lucent Public License 1.02
Lines 7
Keywords
B (1) Hello World (24)
Permissions
Owner: Theodore Test
Group Owner: Famous Code
Viewable by Everyone
Editable by All Siafoo Users
Hide
Meet people who work on similar things as you – get help if you need it Join Siafoo Now or Learn More

The first appearance of Hello World Atom Feed 0

In Brief The earliest documented code containing the phrase "hello world." Written in the archaic B language by Brian W. Kernighan, this snippet demonstrates the assignment of fragments of the hello world string to three external variables, something akin to a more limited version of the modern 'global namespace variable' idiom.... more
# 's
1main( ) {
2 extrn a, b, c;
3 putchar(a); putchar(b); putchar(c); putchar('!*n');
4}
5a 'hell';
6b 'o, w';
7c 'orld';

The earliest documented code containing the phrase "hello world." Written in the archaic B language by Brian W. Kernighan, this snippet demonstrates the assignment of fragments of the hello world string to three external variables, something akin to a more limited version of the modern 'global namespace variable' idiom.

Dr Kernighan scribed this piece of history in the 1973 Bell Laboratories document "Bell Laboratories Computing Science Technical Report #8: The Programming Language B".