Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How to judge whether an integer constant has a sign?
How to judge whether an integer constant has a sign?
Unsigned integer constant, 10 decimal number followed by u, for example, 33u

A signed integer constant without a u.

U stands for unsigned

Unsigned character-1 byte unsigned integer

Unsigned short integer-2 byte unsigned integer

Unsigned long integer-4 byte unsigned integer

-

If we discuss constant writing, is there a+,-sign in front of it?

Then you have to read it as a string. If the first character is'+'or'-',it is signed.