#include <conio.h>
#include <stdio.h>
void main()
{
char str[9] = "简体中文";
char str2[8] = {'简' >> 8, '简' & 0xff, '体' >> 8, '体' & 0xff, 'A' , 'B', 'C', '\0'};
puts(str);
puts(str2);
str[0] = '繁' >> 8;
str[1] = '繁' & 0xff;
puts(str);
_getch();
}
输出:
简体中文
简体ABC
繁体中文