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

3



Your comments will be displayed only after manual approval.