有什么区别&QUOT的差异;短整型"和" INT"用C?
问题描述:
如何为短整型(或短)和C的int有什么不同?它们具有相同的尺寸和范围。如果它们是基本相同的,什么是使用具有两个数据类型?
How is short int (or short) and int different in C? They have the same size and range. If they are essentially the same, what is the use of having two data types?
答
他们的可以具有相同的大小,但它保证了 INT
等于或大于短整型
。
They may have the same size, but it is guaranteed that int
is equal to or bigger than short int
.