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...

write a C code
to reverse a string using a recursive function, without
swapping or using an extra memory.

Answer Posted / noone

/* this one is a copy of a earlier one posted i just made a
small adjustment */
void reverse(char *str)
{
if(*str)
{
reverse(str+1);
putchar(*str);
}
}

Is This Answer Correct ?    18 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain goto?

1093


When should structures be passed by values or by references?

994


What are the different categories of functions in c?

1081


Compare interpreters and compilers.

1027


Does * p ++ increment p or what it points to?

1054


which is conditional construct a) if statement b) switch statement c) while/for d) goto

1165


What is methods in c?

1032


the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters

2233


What should malloc() do?

1100


Can we initialize extern variable in c?

1075


How can I avoid the abort, retry, fail messages?

1085


Define C in your own Language.

1032


Write a Program to find whether the given number or string is palindrome.

1227


How can you pass an array to a function by value?

1056


What is the -> in c?

954