O'Reilly logo

C Primer Plus, Fourth Edition by Stephen Prata

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

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, ...

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