基本数据类型大小和范围

基本数据类型

遵循3个规则:

  1.不同的机型只是int类型在变,根据字长定

  2.int至少和short一样长

  3.long至少和int一样长

notes:long是long int的缩写 short 短整型 long 长整型

2的幂表

notes:这张表必须牢记可以快速估算内存大小溢出等

 

 

原文地址:https://www.cnblogs.com/xzpin/p/10023714.html