#include<stdio.h>
void main()
{
char c1, c2; //测试c1,c2从char转换位INT测试计算正确范围
c1 = 97;
c2 = 98;
printf("%c %c\n", c1, c2);
printf("%d %d\n", c1, c2);
getchar();
}
#include<stdio.h>
void main()
{
int c1, c2; //测试c1,c2从char转换位INT测试计算正确范围
c1 = 97;
c2 = 98;
printf("%c %c\n", c1, c2);
printf("%d %d\n", c1, c2);
getchar();
}
#include<stdio.h>
void main()
{
char c1, c2; //测试c1,c2从char转换位INT测试计算正确范围
c1 =127;
c2 = 128;
printf("%c %c\n", c1, c2);
printf("%d %d\n", c1, c2);
getchar();
}
#include<stdio.h>
void main()
{
int c1, c2; //测试c1,c2从char转换位INT测试计算正确范围
c1 =127;
c2 = 128;
printf("%c %c\n", c1, c2);
printf("%d %d\n", c1, c2);
getchar();
}