Home » C Programming » Operators » Question
  1. What will be the final value of c in the following C code snippet? (Initial values: p = 1, q = 2, r = 1)
    r += (-r) ? p : q;
    1. r = 2
    2. r = 3
    3. r = 1
    4. Syntax Error
    5. None of these
Correct Option: A

r = 2



Your comments will be displayed only after manual approval.