int main( ){
int a,b=10;
a = ++b + b--;
printf("a=%d b=%d",a,b);
}
Answers
Answered by
1
Answer:
a=11+10
=21
Explanation:
++b means it increments first
so,11.
b-- means first it takes the original value and then decrements.
so,10.
Answered by
1
a=22 b=10
Explanation:
a= preincrement b plus postdecrement b
preincrement b makes b as 10+1=11 but post decrement means in the next instance b will be decremented to 10 but in this line b-- is 11 only. So a becomes 11+11=22 and in the printf statement b becomes 10
If it helps please mark it brainliest
Similar questions