Chapter 2. Introducing C

You will learn about the following in this chapter:

  • Operator

    =
    
  • Functions

    main () , printf ()
    

In this chapter, you learn how to put together a simple C program, how to create integer-valued variables and assign them values, and how to display those values onscreen. Also, you find out what the newline character is, how to include comments in your programs, how to create programs containing more than one function, how to find program errors, and 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 is peculiar looking, sprinkled with symbols like {, cp->tort, and *ptr++. As you read through this book, however, you will find that the ...

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.