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

26



Your comments will be displayed only after manual approval.