convert a char to number code example
Example 1: char to int
int n = Character.getNumericValue(char);
Example 2: convert char to char*
char c;
char *pChar = &c;
int n = Character.getNumericValue(char);
char c;
char *pChar = &c;