printf(“hello, world\n”);

Hello World
Windell Oskay’s CNC Toast Printer Attribution 2.0 Generic (CC BY 2.0)

“Hello World” has been, since 1974, the first thing you do in a programming language. This simple, hopeful greeting has begun the programming careers of untold numbers of programming students all over the world:

“Hello, World!” program


While small test programs existed since the development of programmable computers, the tradition of using the phrase “Hello world!” as a test message was influenced by an example program in the seminal book The C Programming Language. The example program from that book prints “hello, world” (without capital letters or exclamation mark), and was inherited from a 1974 Bell Laboratories internal memorandum by Brian Kernighan, Programming in C: A Tutorial,[4] which contains the first known version:

main( )
        printf("hello, world\n");

Hello World Collection is a site that has collected snippets of code to let you say “Hello World!” in just about any (programming) language.