#include<stdio.h>
void main()
{
void reverse(void); clrscr(); printf("\nEnter sentence"); reverse(); getch();}void reverse(void) {char c; if((c=getchar())!='\n') { reverse(); putchar(c); return;}}
Sunday, 24 December 2017
C program to reverse the string using recursion
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment