probably a dumb question
this sounds so stupid, but i need help understanding this
#define SOME_CONSTANT 0x002
now, i understand what the define does and all that, but why
do i see these type of numbers, the ones that start out with
0x? i''ve noticed they are used for special "system" things,
like memory addresses and stuff. they aren''t hex are they?
i thought all hex ended in h, like 0AFFh. anyway, i was just
wondering.
Yes, they are hexadecimal. Different languages represent hex numbers in different ways; some use a ''0x'' prefix, and some use a ''h'' suffix.
~~~~~~~~~~
Martee
~~~~~~~~~~
Martee
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement