how to convert an int to a char* c code example Example 1: turn a char into an int in c int x = character - '0'; Example 2: int to char in c c = i +'0';