有人可以告诉我该代码有什么问题吗?我不能使用 malloc,因为我没有在课堂上学习它。我的意思是我可以在没有 malloc 的情况下制作一个二维字符串数组,如果可以,我应该如何在我想要的时候编写一个元素更改/打印/扫描。在此先感谢
int main() {
size_t x,y;
char *a[50][7];
for(x=0;x<=SIZEX;x++)
{
printf("\nPlease enter the name of the new user\n");
scanf(" %s",a[x][0]);
printf("Please enter the surname of the new user\n");
scanf(" %s",a[x][1]);
printf("Please enter the Identity Number of the new user\n");
scanf(" %s",a[x][2]);
printf("Please enter the year of birth of the new user\n");
scanf(" %s",a[x][3]);
printf("Please enter the username of the new user\n");
scanf(" %s",a[x][4]);
}
return 0;
}