Chapter 2. Introducing C

You will learn about the following in this chapter:

  • Operator:

    =

  • Functions:

    main(), printf()

  • Putting together a simple C program

  • Creating integer-valued variables, assign them values, and display those values onscreen

  • The newline character

  • How to include comments in your programs, create programs containing more than one function, and find program errors

  • Also, you discover what keywords are.

What does a C program look like? If you skim through this book, you'll see many examples. Quite likely, you'll find that C looks a little peculiar, sprinkled with symbols like {, cp->tort, and *ptr++. As you read through this book, however, you will find that the appearance of these and of other characteristic C symbols grows less strange, ...

Get C Primer Plus, Fourth 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.