I would like to use some previously defined constants in the definition of the new constant, but he does not like my C compiler:
const int a = 1;
const int b = 2;
const int c = a;
const int sum = (a + b);
Is there a way to define a constant using the values of other constants? If not, what is the reason for this behavior?
source
share