Answers for "convert unsigned char to int"

C#
4

char to int

int n = Character.getNumericValue(char);
Posted by: Guest on December-07-2020
0

c convert char to int

int i = (int)(c - '0');
Posted by: Guest on October-29-2020
4

char to int

char a = 'a';
int ia = (int)a; 
/* note that the int cast is not necessary -- int ia = a would suffice */
Posted by: Guest on March-31-2022

C# Answers by Framework

Browse Popular Code Answers by Language