Computer Science, asked by Krish018, 5 months ago

what will be the output of a++ when int a is equal to -1​

Answers

Answered by Imblank
0

Answer:

a = -1;

a++;

Now a becomes a = a + 1

= -1+1

= 0

a = 0

Similar questions