My friend sent me a joke:
Q. What\'s the difference between C and C++?
A. Nothing, because: (C - C++ == 0)
I tried to change
I used this C++ code
The reason is simple. The ++ operator makes a copy of the var, increase the value then return the copied val. Assuming the operators are evaluated left to right it will pass 10-10(then inc C) thus its always 0. However in most cases depending on order is 'undefined behavior' and some compilers like gcc will report a warning (example http://codepad.org/UPBqO38B)
int main()
{
int c=10;
printf("%d", c-c++);
}