Is there an opposite to putchar() where you can pass the ascii character and it will output the numerical valu开发者_如何学编程e? Thanks.
printf("%d\n", c);
I am not sure which language you are talking. In 'C++', you could just pass (int) ch which should return the numeraical ascii value.
精彩评论