convert binary to char in C language

Discussion in 'C' started by Kalpana, Apr 24, 2008.

  1. Kalpana

    Kalpana New Member

    Joined:
    Jun 19, 2007
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    0
    Can some one please help me in converting a decimal number(ANSI equivalent of a char) to its correspoding char...?

    Like::: 65 stands for A,66 stands for B

    i have a pointer to array of int containing :

    65,66,67,68
    which stands for
    A,B,C,D

    Is there any function which can convert those dec to char in C language ?
    P.s) I cannot use itoa() because my gcc compiler states that it is not defined even after i have included stdlib.h
     
    Last edited: Apr 24, 2008
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,341
    Likes Received:
    378
    Trophy Points:
    83
  3. Kalpana

    Kalpana New Member

    Joined:
    Jun 19, 2007
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    0
    Thank you for the response. I have solved the problem.
     

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