Home » C Programming » Operators » Question
  1. What will be the final values of p and q in the following C statement? (Initial values: p = 2, q = 1)
    q = (q) ? p = 0 : 2;
    1. p = 1, q = 2;
    2. p = 2, q = 2;
    3. p = 2, q = 2;
    4. p = 0, q = 0;
    5. None of these
Correct Option: D

p = 0, q = 0;



Your comments will be displayed only after manual approval.