# include <stdio.h>
int main(void)
{
char ch1 = 'A';
printf("%c\n", ch1);
char ch2 = 'AA';
printf("%c\n", ch2);
char ch3 = 'AAA';
printf("%c\n", ch3);
char ch4 = 'AAAA';
printf("%c\n", ch4);
return 0;
}
/*
在VC++6.0中的输出结果为:
————————————
A
A
A
A
————————————
总结:
1. 为什么'AA', 'AAA', 'AAAA'都不报错,并且输出结果都是A?
2.若是加上‘AAAAA’,就会报错?
*/
|