Contact: aviboots(AT)netvision.net.il
31,037 questions
40,857 answers
573 users
#include <stdio.h> int main(void) { char ch = 'a'; printf("ASCII value of character %c is: %d", ch, ch); } /* run: ASCII value of character a is: 97 */
#include <stdio.h> int main(void) { char ch = 'a'; int ascii = (int)ch; printf("ASCII value of character %c is: %d", ch, ascii); } /* run: ASCII value of character a is: 97 */