Chapter 2. INTRODUCING C

I l @ ve RuBoard

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 appearance of these and of other characteristic C symbols grows less strange , more familiar ”perhaps even welcome! In this chapter, we begin by presenting a simple sample program and explaining what it does. At the same time, we highlight some of C's basic features.

I l @ ve RuBoard


C++ Primer Plus
C Primer Plus (5th Edition)
ISBN: 0672326965
EAN: 2147483647
Year: 2000
Pages: 314
Authors: Stephen Prata

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net