Realcodeart.com

Hello, world

Where every programmer starts, in two lines you can wear.

Brian Kernighan made this the first program people still teach. The 1978 C book made it famous.

Brian Kernighan, made famous by the 1978 C book

License on this page

License notice

The bars are Brian Kernighan's program, not a page from the 1978 book. A lawyer cleared this listing. The book page is not printed on the object.

Brian Kernighan wrote this program in a 1974 Bell Labs memo, and the 1978 C book turned it into the greeting that opens almost every programmer's first day. It prints two words and stops.

The bars are a main, a call, a string, and the braces around them. The lines are thick because the program is short, and the string reads green. It is the smallest piece here, and the one most people have already typed.

History of Hello, world

Gift guide: A graduation gift for a programmer

Next piece: The first web page

Related pieces