Search This Blog

Translate

C program example to make string revere using recursive function,

C program to make string revere,C program to make string revere using recursive function,C program to make string revere using recursion with source code, C program to make string revere using function, C program to make string reverse using pointers with source code


 #include
 #include
 #include
 void main()
 {
  char s[100],t;
  int i,j;
  clrscr();
  gets(s);
  //logic to make  string reverse

  for(i=0,j=strlen(s)-1;i    {
         t=s[i];
        s[i]=s[j];
          s[j]=t;
   }

  puts(s);
  getch();
  }

C Program example List

Google+ Badge