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

n1 is 100



Your comments will be displayed only after manual approval.