What does 0x mean in C language?
In C language, assigning a value of 0x to a variable uses a hexadecimal number as the value of the variable. of. Generally used to represent memory addresses.
Example:
Define x: int x = 0x23;
This sentence means the same as defining int x=35. When the compiler receives 0x23, it treats it as a hexadecimal number.
Simply put, it means that the value after 0x is hexadecimal.
For more programming related content, please pay attention to the Programming Introduction column on the php Chinese website!
The above is the detailed content of What does 0x mean in c language?. For more information, please follow other related articles on the PHP Chinese website!