有什么区别&QUOT的差异;短整型"和" INT"用C? [英] What is the difference between "short int" and "int" in C?

查看:112
本文介绍了有什么区别&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.

这篇关于有什么区别&QUOT的差异;短整型"和" INT"用C?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆