netoops blog

Sunday 22 September 2013

String Reversing In C

#include<stdio.h>
#include<conio.h>
#define EOLN '\n'

void reverse(void);  //function protype

void main(void)
{
   clrscr();
   printf("\n\n\t\t please enter a name \n");
   reverse();
   getche();
}

void reverse(void)
{
  char c,p;
  if((c=getchar())!=EOLN) reverse();
     putchar(c);
  return;
}

Tech Knowledege
SOCIALIZE IT →
FOLLOW US →
SHARE IT →

0 comments :

Post a Comment

 
Subscribe For Free Updates!

We'll not spam mate! We promise.

Become Our Fan on Social Sites!