Chapter 7Exercise 7.1#define MAXLEN 100 Exercise 7.2In expressions, there may be precedence problems. A safer definition
would be Exercise 7.3#define REM(a,b) ((a)%(b)) Exercise 7.4#define REM(a,b) ((long)(a)%(long)(b)) Exercise 7.5It generally signifies a library header file. Exercise 7.6It generally signifies a private header file. Exercise 7.7By using the conditional compilation directives. Examples are shown in the text. Exercise 7.8It uses long int in place of int and unsigned long int, in place of
unsigned int using the arithmetic environment provided by the translator,
not the target. It must provide at least the ranges described in
|
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: |