How to Convert Binary Array to Hexadecimal value

Discussion in 'C' started by pra84veen, Jul 13, 2009.

  1. pra84veen

    pra84veen New Member

    Joined:
    Jul 13, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Hello friends,
    I am Praveen Kumar...Iam new to this forum

    Can any one tell me, how to convert an array of binary values into the Hexadecimal value..

    let us say, iam having an binary array, char Arr[16], the values are stored as
    Arr[0] = 1, Arr[1]=1, Arr[2]=0, Arr[3]=1........Arr[15] = 1.
    This array needs to convert it into Hexadecimal...

    Please help me Friends....
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice