由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - C++ Q79: What is the size of a pointer? and why?
相关主题
void * 和 char * 有区别吗?bloomberg 电面
想成为嵌入式程序员应知道的0x10个基本问题 zz一个排列组合问题
[合集] 想成为嵌入式程序员应知道的0x10个基本问题 zz指针函数, 函数指针, 头大。。
C++ Q93 - Q95array of pointers to functions
My Microsoft Phone Interview关于找环的那道题目
怎么才能掌握好C++里面的指针和引用?问道C的面试题
面试面试官错了怎么办?c++ 程序一问
请教一个 c++ member function pointer 问题一道链表题及其变种
相关话题的讨论汇总
话题: size话题: integer话题: pointer话题: q79话题: what
进入JobHunting版参与讨论
1 (共1页)
c**********e
发帖数: 2007
1
In my computer, the size of a pointer is always 4. But why?
Because the address is essentially a long integer?
I see the following:
size of unsigned integer is 4
size of integer is 4
size of long is 4
size of float is 4
f*******t
发帖数: 7549
2
Because your system is 32-bit architecture.
If your system is 64-bit, the size of any pointer is 8.
So that's a common way to decide whether a system is 32-bit or 64-bit.
h**6
发帖数: 4160
3
Try to test in DOS or Windows 7
c**********e
发帖数: 2007
4
Is the address essentially a long integer? Thanks.
i*****e
发帖数: 113
5
内部只是存储方式,外在表现为整形指针枚举等具体的类型

Is the address essentially a long integer? Thanks.

【在 c**********e 的大作中提到】
: Is the address essentially a long integer? Thanks.
c**********e
发帖数: 2007
6
我记得指针实际上是一个地址,可以cast为一个长整数来者。是不是这样?

【在 i*****e 的大作中提到】
: 内部只是存储方式,外在表现为整形指针枚举等具体的类型
:
: Is the address essentially a long integer? Thanks.

V******B
发帖数: 3940
7
指针变量的内容是一个地址,你说地址有多大?
32位机就是32位的地址64位机就是64位的地址

【在 c**********e 的大作中提到】
: 我记得指针实际上是一个地址,可以cast为一个长整数来者。是不是这样?
1 (共1页)
进入JobHunting版参与讨论
相关主题
一道链表题及其变种My Microsoft Phone Interview
谁对design pattern比较熟?怎么才能掌握好C++里面的指针和引用?
问道老题面试面试官错了怎么办?
一个简单的java题请教一个 c++ member function pointer 问题
void * 和 char * 有区别吗?bloomberg 电面
想成为嵌入式程序员应知道的0x10个基本问题 zz一个排列组合问题
[合集] 想成为嵌入式程序员应知道的0x10个基本问题 zz指针函数, 函数指针, 头大。。
C++ Q93 - Q95array of pointers to functions
相关话题的讨论汇总
话题: size话题: integer话题: pointer话题: q79话题: what