#include<stdio.h>

int main()
{ char names[][20]={
"roshni",
"manish",
"sona",
"baiju",
"ritu"
};
int i;
char *t;
t=names[3];
names[3]=names[4];
names[4]=t;
for(i=0;i<=4;i++)
printf("%s",names[i]);
printf("\n");
return 0;
}

here i get l value required as error and if i replace char names[][2]
with char *names[].. then there is no error nd the names[3] n names[4]
interchange
plzzzz explain why???

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to