C 提示初始值设定项值太多 是什么意思?
代码如下#include <stdio.h>
#define SLEN 40
#define LIM 5
int main(void)
{
const char *mytalents[LIM] = {
"Adding numbers swiftly",
"Multiplying accurately", "Stashing data",
"Following instructions to the letter",
"Understanding the C language"
};
char yourtalents[SLEN] = {
"Walking in a staight line",
"Sleeping", "Watching television",
"Mailing letters", "Reading eamai"
};
system("pause");
return 0;
}
14行sleeping部分被画红,提示初始值设定项值太多,是什么情况?
求大神解答,谢谢