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

void reverse_string(char *string) {

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

Is This Answer Correct ?    2 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the application of void data type in c?

1228


Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?

2213


What is define directive?

1212


Is it possible to have a function as a parameter in another function?

1125


in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none

1152


Explain how do you declare an array that will hold more than 64kb of data?

1494


What is c method?

1041


What is c mainly used for?

1117


Explain how can you tell whether a program was compiled using c versus c++?

1144


Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result

1944


What is dangling pointer in c?

1325


What are global variables?

1263


What is the difference between #include

and #include “header file”?

1080


When is a “switch” statement preferable over an “if” statement?

1206


What kind of structure is a house?

1096