Home Segments Index Top Previous Next

138: Mainline

Unlike variables, macro symbols cannot be assigned. Suppose you were to write the following:

#define MINIMUM_RETURN_RATE 2.5 
... 
MINIMUM_RETURN_RATE = 5.0; 

Because the substitution for MINIMUM_RETURN_RATE would be done before the main work of compiling would begin, the compiler would encounter the following altered line, about which it would complain vigorously:

2.5 = 5.0;