How to convert Binary Array to Hexadecimal Value in C Language

pra84veen's Avatar, Join Date: Jul 2009
Newbie Member
Hello friends, please help me..

Iam having an char array Arr[16] having binary values Arr[0]=0, Arr[1]=0, Arr[2]=1.....Arr[15]=1.
how to convert this array into the hexadecimal in C language only

Please help me...
0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
How far have you got and where are you stuck?
We won't write the code for you but we will help you work it out.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Moved to C-C++ forum
0
pra84veen's Avatar, Join Date: Jul 2009
Newbie Member
Quote:
Originally Posted by xpi0t0s View Post
How far have you got and where are you stuck?
We won't write the code for you but we will help you work it out.

Hello, i tried it out..i got it....thanks for ur concern...
0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
Well done! It's much better if you can figure stuff out for yourself than if you need to be shown it.
0
night.rider's Avatar, Join Date: Jul 2009
Go4Expert Member
do u want to convert whole array to hex or some combi of thar arr values..??
it is easy it'll be worked out