Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   convert binary to char in C language (http://www.go4expert.com/forums/convert-binary-char-c-language-t10222/)

Kalpana 24Apr2008 18:57

convert binary to char in C language
 
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

shabbir 25Apr2008 11:43

Re: convert binary to char in C language
 
Check out Decimal, Hex, octal and binary number inter conversion

Kalpana 30Apr2008 10:47

Re: convert binary to char in C language
 
Thank you for the response. I have solved the problem.


All times are GMT +5.5. The time now is 23:24.