I don't understand why, on this code, 'b+=' return 6 instead of 5. The operation on right-end of operator '+=', should be 0.
- i/2 = 4
- a-4= 0
So Operator '+=' should just add: 0.
#include<stdio.h>
int main(){
int a=4, i=8;
int b;
b=++a;
printf("%i\n",b);
b+=a-i/2;
printf("%i\n",b);
}
Just using theory of sintax