#include
#include
#define N 5
#define MAX 20
void main()
{
char string[N][MAX], temp[MAX];
int i=0, j=0;
printf(“enter names of %d items”, N);
while(i0)
{
strcpy(temp, string[j-1]);
strcpy(string[j-1], string[j]);
strcpy(string[j], temp);
}
}
}
printf(“alphabetical list”);
for(i=0; i
Output: enter names of 5 times renuka rama krishna ravi divya alphabetical list divya krishna rama ravi renuka