Hello there, I'm stuck trying to convert any scanned character to ascii. I know that printf("%d", a); will print the value of the letter a (that is 74 or 75), but i can't get to save it.
This is where I'm at
but that doesn't seem to work.Code:int x; char letter; print("enter a letter\n"); scanf("&c", letter); x = (int)letter;
any input is highly appreciated,
thanks.!