tags:

views:

30

answers:

2

Is there an opposite to putchar() where you can pass the ascii character and it will output the numerical value? Thanks.

A: 

printf("%d\n", c);

Sudhanshu
+1  A: 

I am not sure which language you are talking. In 'C++', you could just pass (int) ch which should return the numeraical ascii value.

Gopalakrishnan Subramani
Yes I was referring to C++. Thanks!
Crystal