hex to ascii conversion

Discussion in 'C' started by binu2binu, Dec 7, 2010.

  1. binu2binu

    binu2binu New Member

    Joined:
    Nov 15, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    i need a program to convert a hex no. to ascii no.......:( :confused:
     
  2. ashken

    ashken New Member

    Joined:
    Oct 22, 2010
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    use the printf function with a format specifier for whatever number system you want eg

    printf("%d",0xA) will convert 0xA to a decimal number which is 10.
     

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