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

void reverse(*str)
{
if(*str){
reverse(++str);
str--;
printf("%c",*str);
}
}

Is This Answer Correct ?    16 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

1222


What is n in c?

1054


What is hash table in c?

1025


The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?

1281


Do you know null pointer?

1028


What is a constant and types of constants in c?

1131


Why is C language being considered a middle level language?

1130


Explain what are bus errors, memory faults, and core dumps?

1277


What are the functions to open and close file in c language?

1204


How do I get an accurate error status return from system on ms-dos?

1129


Is c easy to learn?

986


What is the basic structure of c?

1086


Write a progarm to find the length of string using switch case?

2069


Why is c called "mother" language?

1294


FILE PROGRAMMING

2242