Archived

This topic is now archived and is closed to further replies.

probably a dumb question

This topic is 6017 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Yes, they are hexadecimal. Different languages represent hex numbers in different ways; some use a ''0x'' prefix, and some use a ''h'' suffix.

~~~~~~~~~~
Martee

Share this post


Link to post
Share on other sites