The output of this program comes out to be 0,
Why not 1?
Because:
- a=0;will be assigned then a++;
- So now 0 will be 1; a=1;
This freaks me out !!
#include <stdio.h>
int main()
{
int a=0;
a=a++;
printf("%d",a);
return 0;
}
Output:
0
...Program finished with exit code 0