什么是0xFFFFFFF? [英] what is 0xFFFFFFF ?

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

问题描述

在一个程序中它正在传递:


#define INFINITY 0xFFFFFFF


它是什么的ASCII代码?或者它是一个指针持有的地址?

如此地址?

in a program it is passing like that:

#define INFINITY 0xFFFFFFF

it is a ASCII code of what? or is it a address that a pointer hold?
so adress of what?

推荐答案

iskeletor写道:
iskeletor wrote:

在它传递的程序中:


#define INFINITY 0xFFFFFFF


它是什么的ASCII码?或者它是一个指针持有的地址?

所以说什么?
in a program it is passing like that:

#define INFINITY 0xFFFFFFF

it is a ASCII code of what? or is it a address that a pointer hold?
so adress of what?



这是一个很大的[1]数字,这就是全部。


[1]从这一点来说两个补码中的32位机器整数的视图。

从任何合理的角度来看,它都是花生:甚至不是2pow32,

更不用说(搜索一个数字)10pow100。


-

Chris" electric hedgehog" Dollin

花了很长时间,比最慷慨的估计要长得多。

- James White,/ Sector General /

It''s a biggish [1] number, that''s all.

[1] From the point of view of 32-bit machine integers in twos complement.
From any reasonable point of view, it''s a peanut: not even 2pow32,
let alone (searches for a number) 10pow100.

--
Chris "electric hedgehog" Dollin
"It took a very long time, much longer than the most generous estimates."
- James White, /Sector General/


iskeletor写道:
iskeletor wrote:

在它传递的程序中:


#define INFINITY 0xFFFFFFF


它是什么的ASCII代码?或者它是一个指针持有的地址?

所以说什么?
in a program it is passing like that:

#define INFINITY 0xFFFFFFF

it is a ASCII code of what? or is it a address that a pointer hold?
so adress of what?



0xFFFFFFFF是十六进制整数常量。它的十进制值是

只是4294967295.就C来说,这并不意味着

无穷大。然而,应用程序可能会选择让它完全意味着

,就像他们可能选择2表示无穷大一样。


我不知道是否你知道什么是十六进制的意思。如果你没有,快速的

搜索给我
http://www.pcnineoneone.com/howto/hex1.html

作为一个可能的介绍。

0xFFFFFFFF is a hexadecimal integer constant. Its decimal value is
simply 4294967295. As far as C is concerned, that does not mean
infinity. Applications, however, may choose to have it mean exactly
that, just as they may choose 2 to mean infinity.

I don''t know if you know what hexadecimal means. If you don''t, a quick
search gives me
http://www.pcnineoneone.com/howto/hex1.html
as one possible introduction.





1月24日上午9:43,iskeletor < zirvedo ... @ gmail.comwrote:


On Jan 24, 9:43 am, "iskeletor" <zirvedo...@gmail.comwrote:

在它传递的程序中:


#define INFINITY 0xFFFFFFF


它是什么的ASCII代码?
in a program it is passing like that:

#define INFINITY 0xFFFFFFF

it is a ASCII code of what?



不。它不是ASCII

Nope. It isn''t ASCII


或它是一个指针所持有的地址吗?

所以说什么?
or is it a address that a pointer hold?
so adress of what?



它不太可能是指针


技术上

It is unlikely that it is a pointer

Technically


#define INFINITY 0xFFFFFFF
#define INFINITY 0xFFFFFFF



告诉编译器在编译器遇到令牌时将令牌INFINITY替换为令牌

0xFFFFFFF源代码。使用此INFINITY /

0xFFFFFFF令牌的源代码语句的

上下文将为您提供它是什么。


0xFFFFFFF作为整数值


它/可能/可用作指针的初始化器

它/可能/可用作初始化器对于整数数据项


这取决于具体情况


HTH

-

Lew

tells the compiler to replace the token INFINITY with the token
0xFFFFFFF whenever the compiler encounters it in the source code. The
context of the source code statement that uses this INFINITY /
0xFFFFFFF token will give you "what it is".

0xFFFFFFF is taken as an integer value

It /might/ be used as the initializer for a pointer
It /might/ be used as the initializer for an integer data item

It depends on the context

HTH
--
Lew


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

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