What will be the output of the following C program?
MediaTek technical mcq question, verified with a worked answer. Free to practise - no sign-up.
What will be the output of the following C program?
#include<stdio.h>
int main()
{
int class = 150;
int public = 25;
int private = 30;
class s class >> private public;
printf("%d", class);
return 0;
}
Show answer & explanation
Answer: A. A) 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.