โ† Qualcomm questions

Explain integer overflow and type promotion in char addition

Filed under Qualcomm

The question

Determine and explain the output when assigning out-of-range values to signed chars (e.g., char a=120, b=140; int i = a+b; printf("%d", i); resulting in 4).

No write-up yet. Related questions below have one.

Related Qualcomm questions

Collected from public candidate posts and coding forums. Updated Nov 2026.