Declare an int constant, MonthsInYear , whose value is 12 .
1 Answer
-
two ways:
const int MonthsInYear=12;
or
#define MonthsInYear 12
Declare an int constant, MonthsInYear , whose value is 12 .
two ways:
const int MonthsInYear=12;
or
#define MonthsInYear 12