C語(yǔ)言中什么是無(wú)符號(hào)int?
2025-08-23
1、unsigned integer意思是“無(wú)符整型”,表示從0開始到2^32-1的所有整數(shù)。 2、unsigned 后的int可以省略的。 3、具體用法如下:unsigned a;a=5;或:unsigned int a;a=5;16位系統(tǒng)中一個(gè)int能存儲(chǔ)的數(shù)據(jù)的范圍為-32768~32767,而unsigned int能存儲(chǔ)的數(shù)據(jù)范圍則是0~65535,在計(jì)算機(jī)中,整數(shù)是以補(bǔ)碼形式存放的。...