Jump to content
  • Advertisement


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


probably a dumb question

This topic is 6298 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.


Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!