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

What will be the printed output of the following C code?

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

What will be the printed output of the following C code?

short int num = 257;
char value = num;
printf("value=%d\n", value);
Choose one option.
Show answer & explanation
Answer: A. value=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.