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

7



Your comments will be displayed only after manual approval.