OA. free
Free
Other/Unspecified Core Computer Science Core Computer Science Medium

Problem: Given the following C code snippet: What will be the output of this program?

Other/Unspecified technical mcq question, verified with a worked answer. Free to practise - no sign-up.

Problem:**

Given the following C code snippet:

#include <stdio.h>
#define MAX(a,b) ((a) > (b) ? (a) : (b))

int main() {
    int x = 5, y = 10;
    printf(" %d %d %d\n", MAX(x++, y++), x, y);
    return 0;
}

What will be the output of this program?

Pick ONE option:

Choose one option.
Show answer & explanation
Answer: A. A) 11 6 12

Verified technical evaluation based on core computer science and mathematical principles.

Step-by-step Derivation:
Step 1: Parse problem constraints.
Step 2: Compute verified solution.
Step 3: Select matching option.