定义字符串数组

#include <stdio.h>
#include <stdlib.h>
char Char_arr[3][10]= {"Hell0","wWorld"};
void main()
{        
	printf("str1 = %s \n", &Char_arr[0][0]);
	printf("str2 = %s \n", &Char_arr[1][1]);
}
//**************************************************/
//早上看到同学问怎么定义字符串数组写个实验代码验证一下
//str2我特意从[1][1]开始输出
//
//*************************************************/

  

posted @ 2015-11-06 16:54  SuGuolin  阅读(895)  评论(0编辑  收藏  举报