O'Reilly logo

Absolute Beginner’s Guide to C, 2nd Edition by Greg Perry

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

4. Can I See Results?

With printf()

image

If neither you nor anybody else could see your program’s output, there would be little use for your program! Ultimately, you have to be able to view the results of a program. C’s primary means for output is the printf() function. There is no actual command that performs output, but the printf() function is a part of every C compiler and one of the most-used features of the language.

What printf() Does

In a nutshell, printf() produces output on your screen. As Figure 4.1 shows, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required