#include<stdio.h>
int main()
{
int i=5;
printf("%d %d %d %d %d",i++,i--,++i,--i,i);
return 0;
}
It's giving a output 4 5 5 5 5,but it should be 4 5 5 4 5.Why is this happening?
#include<stdio.h>
int main()
{
int i=5;
printf("%d %d %d %d %d",i++,i--,++i,--i,i);
return 0;
}
It's giving a output 4 5 5 5 5,but it should be 4 5 5 4 5.Why is this happening?