adplus-dvertising
frame-decoration

Question

What will be the output of the program?
#include<stdio.h>

int main()
{
    const int i=0;
    printf("%d\n", i++);
    return 0;
}

a.

10

b.

11

c.

No output

d.

Error: ++needs a value

Answer: (d).Error: ++needs a value

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be the output of the program?