Hello Friends!
I have write following program in C.
main()
{
static char names[5][20]={"pascal","ada","cobol","fortran","perl"};
int i;
char *t;
t=names[3];
names[3]=names[4];
names[4]=t;
for (i=0;i<=4;i++)
printf("%s",names[i]);
}
But it is showing a compile time error Lvalue required in main function. I am not understanding the error message. Please friends explain that problem and write its solution.
Thanks