1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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