什么是预选赛C语言? [英] What is Qualifiers in C language?

查看:201
本文介绍了什么是预选赛C语言?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读一些文字在这个网址:

I am reading some text at this url:

https://cs.senecac.on.ca/~ btp100 /网页/内容/ varia_p.html

在部分:预选赛,他们说:

In the section: Qualifiers, they say:

我们能出线int型,以确保它包含位的最小数目
....
短至少包含16位:
....

"We can qualify the int type to be sure that it contains a minimum number of bits" .... A short contains at least 16 bits: ....

我不明白什么是限定的int类型的意思是,为什么短至少包含16位。

I don't understand what does "qualify the int type" mean and why "A short contains at least 16 bits".

有人能详细说说吗?
(对不起,这个愚蠢的问题,我的英语 - 我不是英语母语)
感谢所有。

Can anybody elaborate on that, please? (Sorry for this silly question, and my English - I am not an English native speaker) Thanks all.

推荐答案

您可以使用限定词来指示要存储您的INT里面是什么尺寸号。想想确切的大小由执行的C而异,但通常是如下:

You can use Qualifiers to indicate what size of number you want to store inside your int. Think the exact size varies by implementation of C, but typically it's as follows.

短整型一个; // 16位,范围-32,768到32,767

无符号短整型B: // 16位,范围0〜65535

无符号整型℃; // 32位,范围0〜4294967295

INT D组; // 32位,范围-2,147,483,648到2,147,483,647

长整型D组; // 32位,范围-2,147,483,648到2,147,483,647(最低要求,可以在64位系统更高版本)

这篇关于什么是预选赛C语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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