Home » C Programming » Operators » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    int p = 3, q = 2;
    int R = (q++) ? q == 1 && p : 1;
    printf("%d\n", R);
    return 0;
    }
    1. 0
    2. 1
    3. 2
    4. 3
    5. None of these
Correct Option: A

0



Your comments will be displayed only after manual approval.