I want to make a matrix of strings in C Programming language this is my code
void main()
{
char Data[10][3][20];
int i=0;
int j=0;
for (i=0;i<10;i++)
{
for (j=0;j<3;j++)
{
Data[i][j]="aa";
}
}
for (i=0;i<10;i++)
{
for (j=0;j<3;j++)
{
printf("%s",Data[i][j]);
}
}
printf("Done");
scanf("%d",&i);
}
the error am having is : assignment to expression with array type
please explain to me what am doing wrong because this is a prototype am trying to use in my original code that is to make a data base of "username,Password,level"
thank you inadvance.