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

What are disadvantages of C language.

1130


what is a function method?give example?

2339


What are pointers? What are different types of pointers?

1092


What is hash table in c?

999


What is nested structure with example?

1040


What does 2n 4c mean?

1202


What are the basic data types associated with c?

1248


What is a char in c?

956


What is the data segment that is followed by c?

1052


How do you search data in a data file using random access method?

1273


Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?

1043


Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings

2723


Without Computer networks, Computers will be half the use. Comment.

2274


Are there any problems with performing mathematical operations on different variable types?

1017


What is a function simple definition?

1061