24. Inline Functions

Question.6

Consider:

#define SQUARE_M(x) ((x) * (x))
inline int square_f(int x) { return x * x; }

int a = 3;
int r1 = SQUARE_M(a++);
int r2 = square_f(a++);

After both lines, what is the value of a

Need Help? Refer to the Quick Guide below

Select Answer