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 / piyush kumar

char gacstring="piyush";
int giindex=0;
voidfnreverse();
void main()
while(gacstring[giindex]!='\0'){
giindex++;
voidfnreverse();
}
if(giindex>0)
giindex--;
printf("%c",chargacstring);
return 0;
}

Is This Answer Correct ?    4 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are pointers really good for, anyway?

1062


How can I manipulate individual bits?

1039


What’s the special use of UNIONS?

1152


application attempts to perform an operation?

1970


If errno contains a nonzero number, is there an error?

1369


When should structures be passed by values or by references?

1035


How would you rename a function in C?

1038


Is c easier than java?

1070


What is a sequential access file?

1171


What is new line escape sequence?

1339


What is multidimensional arrays

1120


What are the advantages of using macro in c language?

1123


What is context in c?

921


What are the restrictions of a modulus operator?

1120


what are # pragma staments?

2041