View Code of Problem 52

#include <stdio.h>
#include <string.h>
int main()
{
   char str[]="abcdefg";
   int i,j,k;
   j=strlen(str)-1;
   for(i=0;i<j;i++,j--)
   {
   	 k=str[i];
   	 str[i]=str[j];
   	 str[j]=k;
   }
   printf("%s\n",str);
   return 0;
}

Double click to view unformatted code.


Back to problem 52