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

1



Your comments will be displayed only after manual approval.