7.5. ExercisesThese exercises are intended to test only a basic understanding of the preprocessor, suitable for a beginner. Many users will never need a more detailed understanding. Exercise 7.1. How would you arrange that the identifier
Exercise 7.2. What is likely to cause problems in a definition of
the form Exercise 7.3. Write a macro called Exercise 7.4. Repeat the last example, but use casts so that any arithmetic type of argument may be used, assuming that there are no overflow problems. Exercise 7.5. What do the Exercise 7.6. What would Exercise 7.7. How would you use the preprocessor to select implementation-specific fragments of a program? Exercise 7.8. What sort of arithmetic does the preprocessor use? |
The C BookThis book is published as a matter of historical interest. Please read the copyright and disclaimer information. GBdirect Ltd provides up-to-date training and consultancy in C, Embedded C, C++ and a wide range of other subjects based on open standards if you happen to be interested. |
|
West Yorkshire Office
GBdirect Ltd
Training: 0800 651 0338 Please call between 0900 and 1700 (UK time) on Monday to Friday South East Regional Office
GBdirect Ltd
Training: 0800 651 0338 Please call between 0900 and 1700 (UK time) on Monday to Friday Please note: |