I l @ ve RuBoard |
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 |