Some Conventions

We are almost ready to begin studying the C language itself. Here are some of the conventions we use in presenting material.

Typeface

For text representing programs and computer input and output, we use a type font that resembles what you might see on a screen or on printed output. We have already used it a few times. In case it slipped by you, the font looks like this:

#include <stdio.h>
int main(void)
{
    printf("Concrete contains gravel and cement.\n");
    return 0;
}

Screen Output

Output from the computer is printed in the same format, with the exception that user input is shown in boldface type. For instance, here is program output from a Chapter 14, "Structures and Other Data Forms," example:

 Please enter the book title. ...

Get C Primer Plus®, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.