Science  People  Locations  Timeline
Index: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Home > Hello world program


 Contents
1.1 ABCABC is an imperative general-purpose programming language and programming environment from CWI, Netherlands. It is interactive, structured, high-level, and easy to learn and use, intended to be used instead of BASIC, Pascal, or even AWK. It is not a syste
1.2 Ada
1.3 AmigaE
1.4 APL
1.5 Assembly language
1.6 AWK
1.7 BASIC
1.8 BCPL
1.9 Befunge
1.10 BLISS
1.11 boo
1.12 Brainfuck
1.13 C
1.14 C#
1.15 C++
1.16 ColdFusion (CFM)
1.17 CIL
1.18 Clean
1.19 CLIST
1.20 COBOL
1.21 Common Lisp
1.22 D
1.23 DCL batch
1.24 Ed and Ex (Ed extended)
1.25 Eiffel
1.26 Erlang
1.27 EUPHORIA
1.28 F#
1.29 Focus
1.30 Forte TOOL
1.31 Forth
1.32 FORTRAN
1.33 Frink
1.34 Gambas
1.35 Game Maker
1.36 Haskell
1.37 Heron
1.38 HP-41 & HP-42S
1.39 IDL
1.40 Inform
1.41 Io
1.42 Iptscrae
1.43 Java
1.44 JVM
1.45 Kogut
1.46 Logo
1.47 Lua
1.48 M (MUMPS)
1.49 Malbolge
1.50 Mathematica
1.51 Modula-2
1.52 MS-DOS batch
1.53 MUF
1.54 Oberon
1.55 Objective C
1.56 OCaml
1.57 OPL
1.58 OPS5
1.59 Pascal
1.60 Perl
1.61 PHP
1.62 Pike
1.63 PL/SQL
1.64 PL/I
1.65 POP-11
1.66 POV-Ray
1.67 Processing
1.68 Prolog
1.69 Python
1.70 REXX, NetRexx , and Object REXX
1.71 RPL
1.72 Ruby
1.73 SAS
1.74 Sather
1.75 Scala
1.76 Scheme
1.77 sed
1.78 Self
1.79 Smalltalk
1.80 SML
1.81 SNOBOL
1.82 SPARK
1.83 SPITBOL
1.84 SQL
1.85 STARLET
1.86 TACL
1.87 Tcl (Tool command language)
1.88 Turing
1.89 TSQL
1.90 UNIX-style shell
A "hello world" program is a computer program that simply prints out "Hello world!" on a display device. It is used in many introductory tutorials for teaching a programming language and many students use it as their first programming experience in a language.

Such a program is typically one of the simpler programs possible in a computer language. Some are surprisingly complex, especially in some graphical user interface (GUI) contexts. Some others are very simple, however, especially those which rely heavily on a particular command line interpreter ("shell") to perform the actual output. In many embedded systems, the text may be sent to a one or two-line LCD display (and in yet other systems, a simple LED being turned on may substitute for "Hello world!").

A "hello world" program can be a useful sanity test to make sure that a language's compiler, development environment, and run-time environment are correctly installed. Configuring a complete programming toolchain from scratch to the point where even trivial programs can be compiled and run may involve substantial amounts of work. For this reason, a simple program is used first when testing a new tool chain.

While small test programs existed since the development of programmable computers, the tradition of using the phrase "Hello world!" as the test message was influenced by an example program in the book The C Programming Language, by Brian Kernighan and Dennis RitchieKen Thompson (left) Dennis MacAlistair Ritchie ( September 9, 1941- ) is a computer scientist notable for his influence on ALTRAN, B, BCPL, C, Multics, and UNIX. Born in Bronxville, New York, Ritchie graduated from Harvard with degrees in physics and appl, published in 1978Events January January 1 The Copyright Act of 1976 takes effect, making sweeping changes to United States copyright law. January 1 Air India's Boeing 747 explodes near Bombay 213 dead. January 4 Referendum in Chile supports policies of Augusto Pinochet.. The example program from that book prints "hello, world" (i.e., no capital letters, no exclamation sign; those have entered the tradition later). The book had inherited the program from a 19741974 is a common year starting on Tuesday (click on link for calendar). Events January-February January 5 Dungeons & Dragons officially released. February 4 Patricia Hearst, the 19 year old granddaughter of publisher William Randolph Hearst, is kidnapped Bell Laboraties internal memorandum by Kernighan - Programming in C: A Tutorial, which shows the first known version of the program:

main( ) { printf("hello, world"); }

However, the first known instance of the usage of the words "hello" and "world" together in computer literature is in A Tutorial Introduction to the Language B, by Brian Kernighan, 1973Events January events January 1 United Kingdom, Ireland, and Denmark enter the European Economic Community now known as the European Union January 3 Columbia Broadcasting System (CBS) sells the New York Yankees for $10 million to a 12-person syndicate led. [1]

A collection of "hello world" programs written in various computer languages can serve as a very simple " Rosetta StoneThe Rosetta Stone is a dark granite stone (often incorrectly identified as " basalt") which provided modern researchers with translations of ancient text in Egyptian demotic script, Greek, and Egyptian hieroglyphics. Because Greek was well known, the ston" to assist in learning and comparing the languages. Keep in mind, however, that unless assembly languageAssembly language or simply assembly is a human-readable notation for the machine language that a specific computer architecture uses. Machine language, a pattern of bits encoding machine operations, is made readable by replacing the raw values with symbo or similar very low-level (hardware-near) languages are involved, not much "computing" (calculation) is usually exhibited.

Here are some examples in different languages:



Read more »

Non User