Home » C Programming » Operators » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    void main()
    {
    char num1 = '2';
    char num2 = 'N';
    int num3 = num1 && num2 || '2';
    printf("%d\n", num3);
    }
    1. N
    2. 0
    3. 1
    4. Compilation Error
    5. Garbage value
Correct Option: C

1



Your comments will be displayed only after manual approval.