ComputerForum.com ComputerForum.com  
TigerDirect
 
Go Back   Computer Forum > General Chat > General Computer Chat

Reply
 
LinkBack Thread Tools Display Modes
Old 05-14-2007, 04:47 PM   #1 (permalink)
New Member
 
Join Date: Mar 2007
Posts: 8
Default Forms of hex?

I've noticed two different ways hex numbers are shown- 0x00000000 and 00 00 00 00 00... Could someone explain what that is all about? Also, what is the "0x" part of the number? (0x00000000) Thanks
kprt is offline   Reply With Quote


Old 05-14-2007, 05:36 PM   #2 (permalink)
Super Moderator
 
The_Other_One's Avatar
 
Join Date: Mar 2005
Location: Lexington, NC
Age: 23
Posts: 12,362
Default

Quote:
C and languages with a similar syntax (such as C++, C#, Java and Javascript) prefix hexadecimal numerals with 0x, e.g. 0x5A3. The leading 0 is used so that the parser can simply recognize a number, and the x stands for hexadecimal (cf. o for Octal and b for Binary). The x in 0x can be either in upper or lower case but is almost always seen written in lower case.
In other words, the 0x makes it easier for programing languages and such to read it, and 00 00 00... makes it easier for humans to read it
__________________
Desktop * Athlon X2 4200 | 2G RAM | 160G HD | 7600GT
Laptop1 * C2D T5550 | 3G RAM | 120G HD | Intel x3100
Laptop2 * C2D T5250 | 2G RAM | 160G HD | Intel x3100

The_Other_One is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Internet Explorer web pages backgrounds and forms don't load fully rtuss General Software 1 04-13-2006 06:26 PM
All forms of media players are dead. NoLuck@All General Software 12 11-15-2005 05:18 AM
What are the plural forms of wish, address,lunch, and speech? v0031 Off Topic Chat 6 10-18-2005 05:21 PM
MS Word Forms jjsevdt General Software 1 08-26-2005 05:36 PM
Need to learn C++ dragon2309 General Software 10 07-04-2005 10:12 AM


All times are GMT +1. The time now is 04:09 AM.


Powered by: vBulletin Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Copyright © 2002-2007 Computer Forum and Web Design Forum