Home » C Programming » Operators » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    void main()
    {
    char n1 = 'N';
    char n2 = 'M';
    int n3 = n1 + n2 % 3 - 3 * 2;
    printf("%d\n", n3);
    }
    1. 74
    2. N
    3. M
    4. Garbage value
    5. Compilation Error
Correct Option: A

74



Your comments will be displayed only after manual approval.