Home Segments Index Top Previous Next

26: Mainline

To use the printf function, you must inform the C compiler that you plan to use C's standard input–output library by including the following line in your program:

#include  

There is more to be said about such lines; for now, however, just include the prescribed line before the first instance of the printf function appears.