1
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}
1
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}
Just subtract 48 from each value.