Forum Posts

moustafa mahmoud
Apr 10, 2019
In technical _engineers_help
When do I say that the answer would vary depending on the implementation of the compiler and when I don't For example, if I was asked what the final value of x & y for the following block of code int x = 0, y = 0; x = x++ + ++y; y = ++x +y++; Can I say the compiler interpreters these statements as y++; // as it's prefix x = x + y; x++; // as it's post fix x++; // as it's prefix y = x + y; y++; // as it's post fix so the final answer is x = 3 & y = 5 or do I always say simply it's a compiler dependent operation
1
1
25