Let's have this piece of code:
int a = 1;
int b = ++a + ++a;
In C++ (VS 2010) the result is: b = 6
but in C# the result is: b = 5
What's going on there? Why are the results different?
Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...
No comments:
Post a Comment