I have simple C program which uses increment operator:
int main() { int a = 6; a+= ++a +++a; printf("value of a is %d\n", a); }
As per my calculation output should be 23
but when I run it, output comesout to be 24
.
Why out put comes out as 24
?