Q:终端输入一个字符,输出ASCII碼
#include<stdio.h> int main() { char c; printf("input a charscter:"); scanf("%c",&c); getchar(); printf("the ASCII of %c is %d ",c,c); return 0; }
Q:终端输入一个字符,输出ASCII碼
#include<stdio.h> int main() { char c; printf("input a charscter:"); scanf("%c",&c); getchar(); printf("the ASCII of %c is %d ",c,c); return 0; }