1 unsigned int u=10,u2=42; 2 std::cout<<u2-u<<std::endl; 3 std::cout<<u-u2<<std::endl;
结果为:1)32;
2)4294967264;
1 int i=10,i2=42; 2 std::cout<<i2-i<<std::endl; 3 std::cout<<i-i2<<std::endl; 4 std::cout<<i-u<<std::endl; 5 std::cout<<u-i<<std::endl;
结果为:1)32;
2)-32;
3)0;
4)0;