> a = ++b + b;
> Which b is loaded into a register (ie evaluated) first - left or right?
>Answer - you don't know (for sure).
Sorry Salem,
Maybe I don't have much experiences in C...
Type: Posts; User: Trancongan
> a = ++b + b;
> Which b is loaded into a register (ie evaluated) first - left or right?
>Answer - you don't know (for sure).
Sorry Salem,
Maybe I don't have much experiences in C...
I don't think so. If it evaluates from right to left, result of the third expression is 21, not 18.
Do you agree with me ? :p
Thanks for your advises very much.
I agree with you that we shouldn't pay attention to these useless points. But I think that when we face an unusual problem, we shouldn't discover it as much as...
Hi Salem,
Thanks for your advise.
I also think like you but I have face with the situation that requires me have to understand this problem. That is in my exam, there is a question:
Q: The...
Hello everybody,
I have met many problem with C because of side-affect but until now I couldn't handle them yet.
I have a code segment that:
x=2; y= 2;
printf("%d\n", ++x + y*x +...
Hello everybody,
I am learning C language and I would like to make some quiz to test my progress. I have taken the test on BrainB and TechniProfiles site but they have little question. Who know...