humingcheng / study_notes

The only significance of notes is to reduce the cost of acquiring knowledge.
0 stars 0 forks source link

编程语言、码型、负数 #3

Open humingcheng opened 8 years ago

humingcheng commented 8 years ago

关键词:编程语言,C, C++, Java, Python,负数,原码,反码,补码 计算机中所有的数据均用补码! 以下C代码表示取unsigned int最大值: unsigned int i; i = (unsigned int)-1;