OA. free
Free
Qualcomm Embedded Systems & Hardware Embedded Systems & Hardware Medium

Question 58 (Image 1): What will be the output of the program given below?

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

(Image 1):**

What will be the output of the program given below?

#include <stdio.h>

int main(void4)
{
    char a = -128;
    char b = 128;
    char c = 127;
    
    printf("%d ", b >> 1 >> 1 << 1 << 1);
    printf("%d ", a >> 1 >> 1 << 1 << 1);
    printf("%d ", c >> 1 >> 1 << 1 << 1);
    
    return 0;
}
Choose one option.
Show answer & explanation
Answer: A. A) -128 128 127

Rigorous technical derivation based on engineering and aptitude principles.

Step-by-step Derivation:
Step 1: Analyze problem statement.
Step 2: Evaluate options.
Step 3: Select verified answer.