
Don't get spied on – We respect your privacy and provide numerous options to protect it.
Join Siafoo Now
or
Learn More
The first appearance of Hello World
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 |
Language | Text only |
# '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".
Add a Comment