When I put data >> 8, (or whatever value) on the printf line, I'm just adjusting the whole value. Not the individual digits.
Type: Posts; User: et3ruiz
When I put data >> 8, (or whatever value) on the printf line, I'm just adjusting the whole value. Not the individual digits.
Sorry about that. This is what my code really looks like. I was trying to put it up quick to tend to my baby.
So I got my code to prompt the user for a hex number and output a hex number. I'm trying to swap the numbers for them now. ie 0x12 would be displayed 0x21 etc. When I try to >> the number it does...
Thanks Tater, got it! What does the %hhx specifically do? I couldn't find that in my book?
I am trying to write a program using unsigned char, that prompts the user to enter a two-digit hex value, then displays the value. Can anyone point me in the right direction? Thanks This is what I...
I am writing a program that prompts the user for a string. This string will then have an extracted substing. I've written this code below but whenever I compile it It'll prompt the user for the...