A C program to say "Hello, world!"

HELLO is a C program which says "Hello, world!".

If you're just trying to learn C, or learning how to use C on a different computer system, or in batch mode, it's helpful if you start with a very simple program with a tiny amount of output that should print immediately if things are working well.


The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.


HELLO is available in a C version and a C++ version and a FORTRAN77 version and a FORTRAN90 version and a Java version and a MATLAB version and a Python version and an R version.

Related Data and Programs:

HELLO_MPI, a C program which prints out "Hello, world!" using the MPI parallel programming environment.

HELLO_OPENMP, a C program which prints out "Hello, world!" using the OpenMP parallel programming environment.

Source Code:

You can go up one level to the C source code page.

Last revised on 18 May 2009.