#include<stdio.h>
int main(){
char c;
printf("请输入一个字符数字:");
scanf("%c",&c);
printf("c='%c'\n",c);
printf("c=%d\n",c);
}
#include<stdio.h>
int main(){
char c;
int i;
printf("请输入一个字符数字:");
scanf("%d",&i);
c=i;
printf("c='%c'\n",c);
printf("c=%d\n",c);
}