例子2.5

#include<iostream>
using namespace std;
int main(){
 unsigned short a;
 short int b=-2;
 a=b;
 cout<<"a="<<a<<endl;
 return 0;
}

原文地址:https://www.cnblogs.com/sanyeai/p/7519188.html