Home » C Programming » Operators » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    void main()
    {
    int num1 = 7, num2 = -9, num3 = 3, num4;
    num4 = ++num1 && ++num2 || ++num3;
    printf("%d %d %d %d", num1, num2, num3, num4);
    }
    1. 8 -8 3 1
    2. 1 3 8 -8
    3. 1 8 -8 3
    4. 8 1 3 -8
    5. None of these
Correct Option: A

8 -8 3 1



Your comments will be displayed only after manual approval.