#include<stdio.h>
#include<string.h>
char *revert(char *str)
{ char temp;
char *p =
str;
char *q = str;
int strlong = 0;
int
i;
strlong = strlen(str);
q+= (strlong - 1);
for(i =
0; i <= strlong/2; i++)
{ temp = *q;
*q =
*p;
*p =
temp;
p++;
q--;
}
return
str;
}
main()
{ char str[] =
"abcdefghijklmnopqrstuvwxyz";
revert(str);
printf("%s\n",str);
}