#include <stdio.h>
int main()
{
char a;
printf("请输入你需要求的ASCII码的字符:\n");
scanf("%c",&a);
printf("\"The ASCII of \'%c\' is %d\".",a,a);
}
C语言输出字符的ASCII码
于 2021-12-19 13:15:27 首次发布
#include <stdio.h>
int main()
{
char a;
printf("请输入你需要求的ASCII码的字符:\n");
scanf("%c",&a);
printf("\"The ASCII of \'%c\' is %d\".",a,a);
}