Home » C Programming » Operators » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    int p1 = 10, p2 = 8;
    int p3;
    p3 = (p2++, p2);
    printf("%d\n", p3);
    return 0;
    }
    1. 9
    2. 8
    3. 10
    4. Compilation Error
    5. Undefined behaviour
Correct Option: A

9



Your comments will be displayed only after manual approval.