OA. free
Free
MediaTek Core Computer Science Core Computer Science Medium

Section Instruction Determine the output of the following program.

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

Section Instruction**

Determine the output of the following program.

int main()
{
    enum e1 {m1, m2, m3, m4};
    enum e2 {mem1 = 1, mem2, mem3};
    enum e3 {member1, member2, member3 = 10};
    printf("%d %d %d\n", m3, mem3, member3);
}

**

Choose one option.
Show answer & explanation
Answer: A. A) 2 1 1

Standard evaluation according to engineering and computational science principles.

Step-by-step Derivation:
Step 1: Analyze problem specification.
Step 2: Derive theoretical solution.
Step 3: Select corresponding answer option.