博客 / 列表

愛搞事的天蠍座 - 數據類型:在超出範圍賦值情況下的計算方式

背景 最近在學習c++,看書看到數據類型時,運行以下代碼時打印結果: #include iostream #include iomanip using namespace std; int main() { short int i; short unsigned int j; j = 40000; i = j; cout i " "

數據類型 , c++