1 回答
0puppy0
TA贡献24条经验 获得超7个赞
char* pChar[5];
char str1[] = "First";
char str2[] = "Second";
char str3[] = "Third";
char str4[] = "Fourth";
char str5[] = "Fifth";
pChar[0] = str1;
pChar[1] = str2;
pChar[2] = str3;
pChar[3] = str4;
pChar[4] = str5;
for (int i=0;i<5;i++)
{
printf("pChar[%d] = %s\n",i,pChar[i]);
}
- 1 回答
- 0 关注
- 1937 浏览
添加回答
举报
0/150
提交
取消