0xff,跟0xFF有区别吗?

AIGPTchina 2010-11-02 11:49:42
0xff,跟0xFF有区别吗?如果没区别,那为什么没区别呢?
...全文
1565 17 打赏 收藏 转发到动态 举报
写回复
用AI写文章
17 条回复
切换为时间正序
请发表友善的回复…
发表回复
shexinwei 2010-11-02
  • 打赏
  • 举报
回复
没有区别,都可以的。
时间一粒 2010-11-02
  • 打赏
  • 举报
回复
前人规定,后人沿用!
如果可以,LZ改写历史吧
dingshaofengbinbin 2010-11-02
  • 打赏
  • 举报
回复
木有区别的
wyfwx 2010-11-02
  • 打赏
  • 举报
回复
都是 1111 1111,当然是一样的啦
  • 打赏
  • 举报
回复
木有....
明月生寒 2010-11-02
  • 打赏
  • 举报
回复
真没有区别……规定就是规定……
luciferisnotsatan 2010-11-02
  • 打赏
  • 举报
回复
没有区别,大小写一样
pang123hui 2010-11-02
  • 打赏
  • 举报
回复
没有区别,确实是一样的呀
kerryxue 2010-11-02
  • 打赏
  • 举报
回复
木有区别滴
赵4老师 2010-11-02
  • 打赏
  • 举报
回复
C标准就这么约定的
编译器就这么实现的
王八的屁股——规定(龟腚)
C++ Integer Constants
Integer constants are constant data elements that have no fractional parts or exponents. They always begin with a digit. You can specify integer constants in decimal, octal, or hexadecimal form. They can specify signed or unsigned types and long or short types.

Syntax

integer-constant :

decimal-constant integer-suffixopt
octal-constant integer-suffixopt
hexadecimal-constant integer-suffixopt
'c-char-sequence'

decimal-constant :

nonzero-digit
decimal-constant digit

octal-constant :

0
octal-constant octal-digit

hexadecimal-constant :

0x hexadecimal-digit
0X hexadecimal-digit
hexadecimal-constant hexadecimal-digit

nonzero-digit : one of

1 2 3 4 5 6 7 8 9

octal-digit : one of

0 1 2 3 4 5 6 7

hexadecimal-digit : one of

0 1 2 3 4 5 6 7 8 9
a b c d e f
A B C D E F

integer-suffix :

unsigned-suffix long-suffixopt
long-suffix unsigned-suffixopt

unsigned-suffix : one of

u U

long-suffix : one of

l L

64-bit integer-suffix :

i64

AIGPTchina 2010-11-02
  • 打赏
  • 举报
回复
为什么 十六进制大小写是一样的。
「已注销」 2010-11-02
  • 打赏
  • 举报
回复
没有区别。。。。十六进制大小写是一样的。
greyillusion 2010-11-02
  • 打赏
  • 举报
回复
呃,其他语言里有限定吗
zhutianjin4355255 2010-11-02
  • 打赏
  • 举报
回复
[Quote=引用楼主 wcg_jishuo 的回复:]
0xff,跟0xFF有区别吗?如果没区别,那为什么没区别呢?
[/Quote]

没区别,数字不区分大小写的
jacktion2004 2010-11-02
  • 打赏
  • 举报
回复
没有区别。。。。十六进制大小写是一样的。

69,371

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧