C和只有C语言有一个标准的64位整数类型? [英] C and only C language has a standard 64 bit integer type ?

查看:65
本文介绍了C和只有C语言有一个标准的64位整数类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好


我在这里读到只有C语言有一个标准的64位整数。

你能告诉我是什么原因这个 ?有什么特别的关于

C语言?


你能告诉我一些这种整数类型的引用吗?什么时候介绍?
介绍?


谢谢

Timothy Madden

罗马尼亚

---------------------------------------------- ---

我不想错过任何事情

Hello

I''ve read here that only C language has a standard 64bit integer.
Can you please tell me what are the reasons for this ? What is special about
C language ?

Can you please show me some references to this integer type ? When was it
introduced ?

Thank you
Timothy Madden
Romania
-------------------------------------------------
And I don''t wanna miss a thing

推荐答案

Timothy Madden在新闻中写道:2r * ************@uni-berlin.de在

comp.lang.c ++:
Timothy Madden wrote in news:2r*************@uni-berlin.de in
comp.lang.c++:
你好

我在这里读到只有C语言有一个标准的64位整数。
你能告诉我这是什么原因吗?关于C语言有什么特别之处?

你能告诉我一些关于这个整数类型的引用吗?是什么时候介绍它?
Hello

I''ve read here that only C language has a standard 64bit integer.
Can you please tell me what are the reasons for this ? What is special
about C language ?

Can you please show me some references to this integer type ? When was
it introduced ?



在这个页面上:

http://www.open-std.org/jtc1/sc22/wg...s/papers/2004/


您将找到以下参考:


N1565 04-0005将长long类型添加到C ++ J. Stephen Adamczyk

2004-01-22 04-02进化

http://www.open-std.org/jtc1/sc22/wg...2004/n1565.pdf

注意,书签:

http://www.open-std.org/jtc1/sc22/wg21/

如果你对未来的标准方向感兴趣。


HTH。


Rob。

-
http://www.victim -prime.dsl.pipex.com/


On this page:

http://www.open-std.org/jtc1/sc22/wg...s/papers/2004/

you will find a reference to:

N1565 04-0005 Adding the long long type to C++ J. Stephen Adamczyk
2004-01-22 04-02 Evolution

http://www.open-std.org/jtc1/sc22/wg...2004/n1565.pdf
Note, bookmark:

http://www.open-std.org/jtc1/sc22/wg21/

If you''re intrested in the future direction of the standard.

HTH.

Rob.
--
http://www.victim-prime.dsl.pipex.com/


Timothy Madden写道:
Timothy Madden wrote:
你好
<我读过这里只有C语言有一个标准的64位整数。


那不太好。整数类型没有固定的大小,它们只有
具有最小尺寸。并且碰巧C的类型为long long,其中
必须至少为64bit,而C ++不是。

你能告诉吗?我这是什么原因?


C ++语言标准基于C89标准,该标准没有长期和b $ b。无论是。包含新的

类型的C标准的新版本在C ++标准之后一年完成。

C语言有什么特别之处?
Hello

I''ve read here that only C language has a standard 64bit integer.
That''s not quite it. The integer types don''t have fixed sizes, they only
have minimum sizes. And it happens that C has the type "long long", which
is required to be at least 64bit, and C++ doesn''t.
Can you please tell me what are the reasons for this ?
The C++ language standard is based on the C89 standard, which doesn''t have
"long long" either. The new version of the C standard that contains the new
type was finished one year after the C++ standard.
What is special about C language ?

Can you please show me some references to this integer type ? When was it
introduced ?




符合C99标准。



In the C99 standard.


9月20日星期一2004 12:10:28 +0300,Timothy Madden

< ba **** @ rmv.spam.home.ro>在comp.lang.c ++中写道:
On Mon, 20 Sep 2004 12:10:28 +0300, "Timothy Madden"
<ba****@rmv.spam.home.ro> wrote in comp.lang.c++:
你好

我在这里读到只有C语言有一个标准的64位整数。


不,C已经定义了有符号和无符号的''long long''整数类型

,必须包含至少64位,但可能有更多。


但它不是只有C,只是不是C ++。例如,Java就像其他一些语言那样具有完全宽度的64位整数类型。

你能告诉我这是什么原因吗?关于
C语言有什么特别之处?
Hello

I''ve read here that only C language has a standard 64bit integer.
No, C has defined the signed and unsigned ''long long'' integer types
that must contain at least 64 bits, but could have more.

But it is not "only C", just merely not C++. Java, for example, has
exact-width 64-bit integer types, as do some other languages.
Can you please tell me what are the reasons for this ? What is special about
C language ?




大部分关于C的特殊事情都没有什么可做的

有了这个。


至于原因,今天的磁盘驱动器成本低于



Most of the things that are special about C have nothing at all to do
with this.

As for the reasons, disk drives today cost less than


这篇关于C和只有C语言有一个标准的64位整数类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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