I l @ ve RuBoard |
You will learn about the following in this chapter:
Keyword
while
Operators
= - * / % ++ - - (type)
This chapter introduces you to C's multitudinous operators, including those used for common arithmetic operations. You learn about operator precedence and the meanings of the terms statement and expression . Then you encounter the handy while loop. Compound statements, automatic type conversions, and type casts are next . Finally, you see how to write functions that use arguments.
Now that you've looked at ways to represent data, let's explore ways to process data. C offers a wealth of operations for that purpose. You can do arithmetic, compare values, modify variables , combine relationships logically, and more. Let's start with basic arithmetic: addition, subtraction, multiplication, and division.
Another aspect of processing data is organizing your programs so that they take the right steps in the right order. C has several language features to help you with that task. One of these features is the loop, and in this chapter you take a first look at it. A loop enables you to repeat actions and makes your programs more interesting and powerful.
I l @ ve RuBoard |