What will be the output of the given code?
#include #define MAX( A, B ) ((A) > (B) ? (A) : (B))
void main() {
int i, x, y;
x = 23;
y = 45;
i = MAX( x++, y++ );
// Side-effect: // larger value incremented twice
cout << "x = " << x << " y = " << y << '\n';
}
- x=23 y=45
- x=24 y=46
- x=24 y=47
- x=22 y=47