Unsigned hexadecimal constant in C?

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

Leave a Comment