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

6



Your comments will be displayed only after manual approval.