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 / sampath

void reverse(*str)
{
if(*str)
{
reverse(str+1);
putchar(*str);
}
}

Is This Answer Correct ?    58 Yes 51 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I use strcmp?

1080


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

2372


What is the right way to use errno?

1058


How do you list files in a directory?

1146


What is an operator?

1077


Why is sprintf unsafe?

1078


What is LINKED LIST? How can you access the last element in a linked list?

1075


What is multidimensional arrays

1130


How can a program be made to print the name of a source file where an error occurs?

1227


what is ur strangth & weekness

2434


What is sizeof array?

1060


Explain what is the most efficient way to store flag values?

1232


Are enumerations really portable?

1029


What are the back slash character constants or escape sequence charactersavailable in c?

1184


Why can’t we compare structures?

1276