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

What will be the output of the following program?

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

What will be the output of the following program?

#include<stdio.h>

int arithmetic(int, int);
int main()
{
    return arithmetic(11, 9);
}

int arithmetic(int num1, int num2)
{
    return(arithmetic(11 - 9);
}
Choose one option.
Show answer & explanation
Answer: A. A) 99

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.