Integer Promotion造成两种执行结果
首先我们来看看两段代码及其相应的执行结果。
#include <iostream>
using namespace std;
int main()
{
signed int a = -1;
unsigned int b = a;
if(a == b)
cout<<"a==b"<<endl;
else if(a<b)
cout<<"a < b"<<endl;
else