What will be the output?
#include<stdio.h>
int main()
{
char *names[] = {
"Syam", "soorya", "arun", "Baiju",
"jino"};
int i;
char *t;
t = names[3];
names[3] = names[4];
names[4] = t;
for(i=0; i<=4; i++)
printf("%s,",
names[i]);
return 0;
}
No comments:
Post a Comment