Reputation Points: 5,243 [?]

Q&As Helped to Solve: 3,089 [?]

Skill Endorsements: 124 [?]

•Team Colleague

•
Featured

• Sponsor

0

0x30 is hexidecimal value of 48 decimal (use your scientific calculator to convert 30 hex to decimal). Adding 48 to a numeric digit will make it a printable digit -- see any ascii conversion chart.

Reputation Points: 5,243 [?]

Q&As Helped to Solve: 3,089 [?]

Skill Endorsements: 124 [?]

•Team Colleague

•
Featured

• Sponsor

0

temp variable is a character array. before adding the binary digit to temp the digits must be converted to one of the ascii characters '0' through '9'. for example: 1 + 48 = 49, and if you look at that ascii chart the number 49 is the letter '1'. Also note that the number 1 and the letter '1' are not the same thing.

Question Answered as of 7 Years Ago by
Ancient Dragon
and ~s.o.s~

You

This question has already been solved: Start a new discussion instead