Home » C Programming » Operators » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    int n1 = 5, n2 = 3;
    int n3 = (n2++) ? 2 : n2 == 1 && n1;
    printf("%d\n", n3);
    return 0;
    }
    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
Correct Option: B

2



Your comments will be displayed only after manual approval.