Prova questo
codice:
int c;
char carattere = "b";
c =  (int)carattere;
printf("%d\n",c);