I am trying get number ASCII for letter in char variable. My code so far is:
int main (int argc,char* argv[]) {
char c="A"; //here error
char b="'"; //here error
char d="z"; //and here error
printf("%d\n %d\n %d\n",c,b,d);
}
But I get the following errors:
analizer.c: In function ‘main’: analizer.c:13:8: warning: initialization makes integer from pointer without a cast [enabled by default] analizer.c:14:8: warning: initialization makes integer from pointer without a cast [enabled by default] analizer.c:15:8: warning: initialization makes integer from pointer without a cast [enabled by default]