How to convert Binary in array form to Decimal as int form .

  • helmut
  • Newbie
  • Newbie
  • helmut
  • Posts: 5

Post 3+ Months Ago

I managed to convert Hex to binary n save the binary values into an array.

say array[0] = 0 ; array[1] = 1; array[2] = 0; and array[3] = 1

how do i extract these values to put them on to string so that later i can convert the binary form to a decimal ?

using C/C++ language.
  • _Leo_
  • Proficient
  • Proficient
  • User avatar
  • Posts: 279
  • Loc: Buenos Aires, Argentina

Post 3+ Months Ago

Look, in C a string is an array. If you use the ascii value of 0 and 1 instead, and add a 0 in the last position, you got a string you can use...

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 32 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.