#include <stdio.h> int main(){ char c='1'; //强制类型转换取到的是其字符对应的ASCII值 int a=(int)c; printf("%d",a); //取到字符本身的整型值 int b=c-48; printf("%d",b); return 0;}