0

I am running the following type of C code

int a = 0;
printf("%d %d" , a , a++);

this code is returning me the output

1 0

As far as I understand a++ would append the value of a after it is read, and since a gets printed first the output should be 0 0 according to me. Where am I going wrong in understanding this?

AshAR
  • 228
  • 1
  • 14

0 Answers0