主题:谁能搞搞明白。。
结合循环语句编一个一维数组输出一句有十个单词的话,在函数中使用
extern,auto,static,register等限定不同类型的变量。
#include <stdio.h>
int main()
{
int a(char m[]);
char q;
q=m[];
printf("%s\n",q);
return 0;
}
int a(char m[])
{
static m[]={"My dream is you are always to be with me"};
auto int i;
for(i=0;i<10;i++)
printf("\n");
return(m[i]);
}
有几个错误,可不知道咋改[em10][em10][em10
extern,auto,static,register等限定不同类型的变量。
#include <stdio.h>
int main()
{
int a(char m[]);
char q;
q=m[];
printf("%s\n",q);
return 0;
}
int a(char m[])
{
static m[]={"My dream is you are always to be with me"};
auto int i;
for(i=0;i<10;i++)
printf("\n");
return(m[i]);
}
有几个错误,可不知道咋改[em10][em10][em10