Tuesday, 20 August 2013

How to convert decimal value to character in c language

How to convert decimal value to character in c language

I have an array of char but values is decimal representation of a
character. example:
char bytes[4]={50,48,49,51}
how to convert this to get char array like this:
char bytes1[4]={2,0,1,3}

No comments:

Post a Comment