Traditional Culture Encyclopedia - Photography and portraiture - How does C language store Chinese with two-dimensional array?
How does C language store Chinese with two-dimensional array?
Can be stored in char.
# include & ltstdio.h & gt
int? Master ()
{
Charles? A[2][ 10]={ "Baidu once", "You will know"};
int? Me;
for(I = 0; I<8; i++)
printf("%c ",a[0][I]);
printf(" \ n ");
for(I = 0; I<2; i++)
printf("%c ",a[0][I]);
printf(" \ n ");
for(I = 2; I<4; i++)
printf("%c ",a[0][I]);
printf(" \ n ");
printf("%s ",a[ 1]);
Return? 0;
You should understand that 12864 is output like this, and so is the computer.
- Related articles
- Is summer and autumn perfume inferior?
- What about Shanghai Qiyi Digital Photography Co., Ltd.?
- Look at the photos and recall the emotional sentences.
- What is the most beautiful village in China? When can I see the most beautiful scenery?
- The president's novel "A woman surnamed Lin"
- What scenic spots must I visit for Rizhao tourism?
- Geomorphological landscape of giant Saturn ring in Qinghai
- What about Zhongshan Yichuang Photography Equipment Co., Ltd.?
- Who knows the information of male model Wang Yongbin? Where is his hometown?
- How to make logo with ps PS