|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
测试题第3题
#include <stdio.h>
#define NUM 5
int main()
{
char slogans[NUM][100] = {
"I love FishC.com!",
"Keep moving!",
"Impossible is nothing!",
"Just do it!",
"I am what I am!"};
int i;
for (i = 0; i < NUM; i++)
{
printf("%s\n", slogans[i]);
}
return 0;
}
1.slogans[NUM][100] = {
"I love FishC.com!",
"Keep moving!",
"Impossible is nothing!",
"Just do it!",
"I am what I am!"};是什么意思;5*100的数组第0行的前5个元素是I love FishC.com!","Keep moving!",Impossible is nothing!""Just do it!","I am what I am!"吗?
2. for (i = 0; i < NUM; i++)
{
printf("%s\n", slogans[i]);
slogan[i]是什么意思?
2点没有太明白,向各位大神求助
是什么意思;5*100的数组第0行的前5个元素是I love FishC.com!","Keep moving!",Impossible is nothing!""Just do it!","I am what I am!"吗?
这里一共五行字符串,每行分别存放上面的字符串,并且在后面有'\0'作为结尾
slogan[i]是什么意思?
就是第 i 行的字符串
|
|