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?
a
Select Answer
r1: a incremented once (a=4),
a=4
r2: a incremented once (a=4)
r1: a incremented twice (a=5) ,
a=5
r1: undefined behavior due to double modification,
Both increment a twice