用C无符号的十六进制常量? [英] Unsigned hexadecimal constant in C?
本文介绍了用C无符号的十六进制常量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请问治疗Ç十六进制常数(例如0x23FE),并签署或unsigned int类型?
Does C treat hexadecimal constants (e.g. 0x23FE) and signed or unsigned int?
阿姆鲁
推荐答案
数本身总是PTED作为非负数间$ P $。十六进制常数不具有标志或ex的preSS负数任何固有方式。该类型的常量的是这些可再present自己的价值第一个:
The number itself is always interpreted as a non-negative number. Hexadecimal constants don't have a sign or any inherent way to express a negative number. The type of the constant is the first one of these which can represent their value:
int
unsigned int
long int
unsigned long int
long long int
unsigned long long int
这篇关于用C无符号的十六进制常量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文