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

-5



Your comments will be displayed only after manual approval.