Displaying ./code/cs256su21code/jul06/ascii.c/*
this program gets a single character from the user and outputs it's ASCII number
*/
#include <stdio.h>
int main(){
int ch;
printf("Enter a character: ");
ch = getchar();
printf("%c - is representened by ASCII number %d\n", ch, ch);
return 0;
}
|