Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   How to convert Binary Array to Hexadecimal Value in C Language (http://www.go4expert.com/forums/convert-binary-array-hexadecimal-value-t18519/)

pra84veen 13Jul2009 15:26

How to convert Binary Array to Hexadecimal Value in C Language
 
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...

xpi0t0s 13Jul2009 15:49

Re: How to convert Binary Array to Hexadecimal Value in C Language
 
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.

shabbir 13Jul2009 15:52

Re: How to convert Binary Array to Hexadecimal Value in C Language
 
Moved to C-C++ forum

pra84veen 14Jul2009 12:00

Re: How to convert Binary Array to Hexadecimal Value in C Language
 
Quote:

Originally Posted by xpi0t0s (Post 52393)
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...

xpi0t0s 14Jul2009 12:10

Re: How to convert Binary Array to Hexadecimal Value in C Language
 
Well done! It's much better if you can figure stuff out for yourself than if you need to be shown it.

night.rider 14Jul2009 12:45

Re: How to convert Binary Array to Hexadecimal Value in C Language
 
do u want to convert whole array to hex or some combi of thar arr values..??
it is easy it'll be worked out


All times are GMT +5.5. The time now is 03:54.