C, how to define variables that can be saved hexadecimal integer

 

Int or long int can store, in the final analysis hexadecimal integer integer, hexadecimal notation is just a way. For example, int x = 0x16;
hex (HEXADECIMAL) is just a representation of data in a computer, the rule is "every a hexadecimal", does not affect the stored data. Any data stored in the computer are only binary (0/1) data, but can be adjusted according to the output when needed.

 

Reference:
https://zhidao.baidu.com/question/96561067.html

Guess you like

Origin www.cnblogs.com/sea-stream/p/11129931.html