Let's have this piece of code:
int a = 1;int b = ++a + ++a;
In C++ (VS 2010) the result is: b = 6but in C# the result is: b = 5
What's going on there? Why are the results different?
No comments:
Post a Comment