--- In [email protected], Ahmed Mahmoud <eng_hamada2...@...> wrote:
>
> i hope you read them -this is true as i tried them many times if you have
> another opinion illustrate it
In the expression:
v=(m++)+(++m);
the value of v depends on the order of evaluation. Therefore the result is
undefined - you might get 12, I might get 7329. Tomorrow I might get -367. The
day after, the program might crash. Yes, it's unlikely, but that's the official
answer - you can assume that the answer is always going to be 12 if you like,
but your program is erroneous, incorrect, etc.
This is explained in previous posts, which is why I was surprised at your post.