Thursday 15 May 2014

c++ - Leading zeros of a binary number doesn't get printed -


I am writing a code that involves converting decimal numbers into binary and storing binary numbers. I have some binary numbers eg 001101011 is not able to store the principal zero and prints and stores it instead - & gt; 1101011. Any help would be appreciated thanks

I am cutting this with my mind reading powers That'll help you.

  printf ("% 08x", number);    

No comments:

Post a Comment