Learning by doing: Reading books and trying to understand the (code) examples
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

21 lines
262 B

#include <stdio.h>
int main (void) {
unsigned int a;
printf("Give an ASCII code value: ");
scanf("%u", &a);
if (a > 127) {
printf("Outside of ASCII range\n");
return 1;
} else {
printf("The character is: %c\n", a);
}
return 0;
}