I tried to type in a letter "A" when I use the following code,
and choice is integer which is 32 bits, can anyone tell me what happened when the letter is keyed in? if I entered 'A', scanf("%d",&choice); is evaluated as "1" or "0"? thanks.
Code:
scanf("%d",&choice);//I entered 'A'
printf("%d",choice);//I get 32 here!