Home » C Programming » Operators » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    int n1 = 3, n2 = 4;
    if (n1 && n2 == 1)
    printf("Right\n");
    else
    printf("Wrong\n");
    }
    1. Compilation Error
    2. Wrong
    3. Runtime Error
    4. Right
    5. None of these
Correct Option: B

Wrong



Your comments will be displayed only after manual approval.