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

3, 2



Your comments will be displayed only after manual approval.