纯英文版 C-FAQ chm

时间:2012-01-22 15:39:46
【文件属性】:

文件名称:纯英文版 C-FAQ chm

文件大小:579KB

文件格式:CHM

更新时间:2012-01-22 15:39:46

CFAQ

Question 1.1 Q: How should I decide which integer type to use? -------------------------------------------------------------------------------- A: If you might need large values (above 32,767 or below -32,767), use long. Otherwise, if space is very important (i.e. if there are large arrays or many structures), use short. Otherwise, use int. If well-defined overflow characteristics are important and negative values are not, or if you want to steer clear of sign-extension problems when manipulating bits or bytes, use one of the corresponding unsigned types. (Beware when mixing signed and unsigned values in expressions, though; see question 3.19.)


网友评论