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

-4



Your comments will be displayed only after manual approval.