Encyclopedia

Hello World

Also found in: Wikipedia.
(redirected from Hello world program)

Hello World

The classic, first program written in a new programming language. Originating in the C and Unix world, the program does nothing more than display "Hello World" on screen. It is often the first lesson in a tutorial, because it demonstrates how much code is necessary to write a very simple program.

In many languages, a complete framework of code is included with every program before anything is written by the programmer. The following example in C is what a programmer does write to display "Hello World" on two lines (each "\n" is a "new" line). The "printf" instruction outputs to the screen (go figure!).

     printf ("Hello\nWorld\n");
Copyright © 1981-2025 by The Computer Language Company Inc. All Rights reserved. THIS DEFINITION IS FOR PERSONAL USE ONLY. All other reproduction is strictly prohibited without permission from the publisher.
Mentioned in
References in periodicals archive
Above is the code for a Hello World program written for NASM, and targeting Linux.
Writing something as simple as a Hello World program can be quite a challenge in assembly.
Copyright © 2003-2025 Farlex, Inc Disclaimer
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional.