源码如下
#include <stdio.h>
main() {
char c1, c2, c3;
c1 = 'a';
c2 = 'b';
c1 = c1 - 32;
c2 = c2 - 32;
printf ("\n%c,%c\n", c1, c2);
printf("%d,%d\n", c1, c2);//输出ASCLL
}
#include <stdio.h>
main() {
char c1, c2, c3;
c1 = 'a';
c2 = 'b';
c1 = c1 - 32;
c2 = c2 - 32;
printf ("\n%c,%c\n", c1, c2);
printf("%d,%d\n", c1, c2);//输出ASCLL
}