标题:十六进制的地址为什么要00开头而不是0x?
取消只看楼主
maxlea
Rank: 1
等 级:新手上路
帖 子:62
专家分:0
注 册:2006-12-7
 问题点数:0 回复次数:0 
十六进制的地址为什么要00开头而不是0x?


#include <iostream>
using namespace std;
int main()
{
int a=10;
double b=10.11;
cout << \"The value of a is \" << a << \" and the address of a is \" << &a << endl ;
cout << \"The value of b is \" << b << \" and the address of b is \" << &b << endl ;
return 0;
}

搜索更多相关主题的帖子: 十六进制 地址 
2007-01-25 17:32



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-118100-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.124037 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved