i have an array with character numbers.. i tried casting:
but the above returns 0 and not the result desired.. Any ideas on how to properly cast a character from a string to an int?Code:printf("%d", (int)string[0]);
example:
Code:char crap[12]; crap[0] = '1'; printf("\n%d\n", (int)crap[0]);