
Know what you're getting – Unlike many sites, all our code is clearly licensed.
Join Siafoo Now
or
Learn More
First idiomatic use of Hello World, in C
0
In Brief | The first use of "Hello World" as printed output. Debuting in Brian Kernighan's 1974 Programming in C: A Tutorial , these humble phrases were the first lines of C code in the tutorial and appeared several years before Kernighan and Dennis Ritchie's book based on the tutorial immortalized this pattern for students of C everywhere ( C Programming Language ).... more |
Language | C |
# 's
1main( ) {
2 printf("hello, world");
3 }
The first use of "Hello World" as printed output. Debuting in Brian Kernighan's 1974 Programming in C: A Tutorial , these humble phrases were the first lines of C code in the tutorial and appeared several years before Kernighan and Dennis Ritchie's book based on the tutorial immortalized this pattern for students of C everywhere ( C Programming Language ).
This version of the C Hello World program is somewhat more minimalistic than its modern derivations .
Comments
I've always felt that if I ever wrote a language intro tutorial, I would use something other than 'hello, world' as my starter program. And yet, I have a feeling in the back of my mind that when the moment of truth came, I would not be able to use anything *other* than the famous phrase.