Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to reverse a string using a recursive function, without
swapping or using an extra memory?

Answer Posted / bret

void revDisplay (char a[])
{

if(strlen(a) != 0)
{
revDisplay(a+1);
cout << a[0];
}
}

Is This Answer Correct ?    6 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can variables be characterized?

2157


Why doesnt the call scanf work?

1154


why we wont use '&' sing in aceesing the string using scanf

2339


which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;

3196


Why is c used in embedded systems?

1089


Can a function argument have default value?

1113


What is maximum size of array in c?

1011


How do we make a global variable accessible across files? Explain the extern keyword?

1848


What does c mean in basketball?

956


What is the full form of getch?

1218


can any one provide me the notes of data structure for ignou cs-62 paper

2144


using for loop sum 2 number of any 4 digit number in c language

2286


What is the purpose of 'register' keyword in c language?

994


State the difference between x3 and x[3].

1078


What does %c mean in c?

1041