64位处理器上的POD类型大小 [英] POD type sizes on a 64bit processor
本文介绍了64位处理器上的POD类型大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
谢谢你先生donbock,
实际上我想知道在c编译器中为全局变量分配的内存是什么?我得到了一个回复,它将在主执行开始之前分配。 />
先生现在我有另一个疑问?我的处理器是intel(r)core(tm)2 duo cpu E7500 @ 2.93GHz。我计算机中c的指针变量大小是多少?它会在16位和32位处理器等其他微处理器上有所不同。我认为我的是64位处理器
thank u sir donbock,
actually i wished to know whem memory would be allocated for global variables in c compiler?and i got a reply that it would be allocated before main execution starts.
sir now i have another doubt ?my processor is intel(r) core(tm) 2 duo cpu E7500 @2.93GHz.what will be the size of pointer variable in c in my computer? will it vary on on some other microprocessor like 16 and 32 bit processor.i think mine is 64 bit processor
推荐答案
使用sizeof()来了解这一点。 />
问候
Dheeraj Joshi
Use sizeof() to know about this.
Regards
Dheeraj Joshi
先生,
我的计算机实际上没有c 。现在,我实际上是在我姐姐的计算机上运行我的编程,这实际上是一个32位处理器。所以请给我答案。
Sir,
I actually dont have c in my computer.now i am actually running my progreams in my sister''s computer which is actually a 32 bit processor.So please give me the answer.
为什么这很重要?
我不只是脾气暴躁。听起来你正在尝试做一些取决于指针变量的特定大小的东西。希望我们能找到一种更便携的方式继续。
Why does this matter?
I''m not just being grumpy. It sounds like you''re trying to do something that depends on a particular size for a pointer variable. Hopefully we can find a more portable way to proceed.
这篇关于64位处理器上的POD类型大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文