输入一个字符回显该字符的 ASCII码值。c语言
#include <stdio.h>
int main() {
char c;
printf("请输入一个字符:");
scanf("%c", &c);
printf("字符%c的ASCII码值为%d\n", c, c);
return 0;
}
原文地址: http://www.cveoy.top/t/topic/hgUB 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
#include <stdio.h>
int main() {
char c;
printf("请输入一个字符:");
scanf("%c", &c);
printf("字符%c的ASCII码值为%d\n", c, c);
return 0;
}
原文地址: http://www.cveoy.top/t/topic/hgUB 著作权归作者所有。请勿转载和采集!