CHAPTER 2INTRODUCING C
You will learn about the following in this chapter:
• Operator:
=
• Functions:
main()
, printf()
• Putting together a simple C program
• Creating integer-valued variables, assigning them values, and displaying those values onscreen
• The newline character
• How to include comments in your programs, create programs containing more than one function, and find program errors
• 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 such as {
, cp->tort
, and *ptr++
. As you read through this book, however, you will find that the appearance of these and other characteristic C symbols grows less ...
Get C Primer Plus, Fifth 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.