8 Relational and Logical Operators

Chapter 9
Remaining C Operators
C's logical operators enable you to combine relational operators into more powerful data-testing statements. The logical operators are sometimes called compound relational operators. As C's precedence table shows (see Appendix B, ''C's Precedence Table"), relational operators take precedence over logical operators when you combine them. The precedence table plays an important role in these types of operators, as this chapter stresses.
To conclude your study of C operators, this chapter also describes many of the unusual operators found only in C and languages designed from C. Even if you have programmed in other languages for many years, you still may be surprised by the power of these C operators.
This chapter teaches you the following topics:
How logical operators are used
The ?: conditional operator
The increment and decrement operators
The sizeof and comma operators

 



C by Example
C by Example
ISBN: 0789722399
EAN: 2147483647
Year: 1999
Pages: 43
Authors: Greg Perry

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