Home » C Programming » Operators » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    int n = 5;
    if (n & (n = 6))
    printf("True %d\n", n);
    else
    printf("False %d\n", n);

    }
    1. True 5
    2. False 5
    3. False 6
    4. Compilation Error
    5. True 6
Correct Option: E

True 6



Your comments will be displayed only after manual approval.