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