Previous: 5.5 Common Errors
Up: 5 Numeric Data Types and Expression Evaluation
Next: 5.7 Exercises
Previous Page: 5.5 Common Errors
Next Page: 5.7 Exercises
In this chapter we have tied up some loose ends and formalized some of the concepts from previous chapters. We have seen how the finite number of bits available to represent numbers limits the range and precision of the numbers stored in the computer. We have introduced additional data types which can extend the range and increase precision as needed for some applications. We have discussed the data types void (when no value is expected) and enum (for improving program readability). We have also shown how user defined names for data types can be defined using typedef with syntax:
equivalent to
and
We have also described how expressions are evaluated, including the determination of the type of the result and the order of applying operators, giving the full precedence and associativity table for all C operators (Table 5.1). We have described some new operators, such as the increment/decrement operators: