Fundamentals 9 min read

Where Did the Iconic Hello World Program Originate?

The article traces the history of the legendary "Hello World" program—from Brian Kernighan's 1978 C book and its early B-language roots, through its cultural symbolism, to the hardware breakthroughs that helped it become a universal first program for generations of developers.

21CTO
21CTO
21CTO
Where Did the Iconic Hello World Program Originate?

This is the most famous program. For every programmer, it is almost always the first example program in any language, prompting the question: where did this iconic program come from?

The program simply tells the computer to display the words "Hello World" and has traditionally been used to test a new system or language, confirming that code compiles, loads, and runs correctly.

Beyond its functional purpose, the test program carries symbolic weight, having evolved over decades into a celebrated tradition that excites programmers when they see those two words appear on screen for the first time.

Hello World: Where Did It Come From?

Brian Kernighan created the earliest "Hello World" in 1978 when he wrote the book The C Programming Language . The program he quoted was derived from a 1973 tutorial on the B language:

main(){
extrn a,b,c;
putchar(a); putchar(b); putchar(c); putchar('!*n');
}
a 'hell';
b 'o, w';
c 'orld';

In a later Forbes India interview, Kernighan admitted his memory of the story was vague, recalling only a cartoon of an egg and a chick where the chick said "Hello World".

The widespread popularity of the program made this origin story fitting.

At the time, neither Kernighan nor his colleague Dennis Ritchie could have imagined the massive impact of the C language and the book; their work was merely a research project at Bell Labs, then part of AT&T.

Although no scientific explanation fully accounts for the program's fame, "Hello World" has become a milestone in computer history.

Revolution in Its Cradle

Before the publication of Kernighan's book, computers were large, slow, and required full‑time scientists to operate, often using punched cards.

Computers were seen as complex, expensive, and inaccessible, limited to academia, government, or defense. Yet early commercial computers like the Zuse 3 and UNIVAC in the 1950s began to appear, albeit at huge cost.

Early programming books such as FORTRAN and BASIC emphasized the utility of computers, helping to shift public perception. The "Hello World" example helped demonstrate that computers could communicate with humans.

In 1964, the book My Computer Likes Me When I Speak Basic used a similar introductory example to illustrate this point.

The advent of the PDP‑11 minicomputer, sold by DEC for about $10,000, was a major catalyst for the spread of "Hello World". Its affordability and support for direct programming without punched cards made it a perfect platform for the C language and UNIX, further popularizing the example.

As more institutions adopted programmable data processors, demand for C language books surged, and the "Hello World" program became a rite of passage for countless developers.

Today, "Hello World" remains the most famous introductory program, marking a programmer's first successful communication with a computer and symbolizing a historic moment in software development.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

software developmentC languageHello Worldprogramming historyBrian Kernighan
21CTO
Written by

21CTO

21CTO (21CTO.com) offers developers community, training, and services, making it your go‑to learning and service platform.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.