Question
Is there an opposite to putchar() where you can pass the ascii character and it will output the numerical value? Thanks.
Solution
printf("%d\n", c);
OTHER TIPS
I am not sure which language you are talking. In 'C++', you could just pass (int) ch which should return the numeraical ascii value.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow