Zmień char w int w c
int x = character - '0';
Nervous Problem
int x = character - '0';
strcpy(str, "98993489");
val = atoi(str);
printf("String value = %s, Int value = %d\n", str, val);
int i;
char c = 'A';
i = (int)c;