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

Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?

1023


what do you mean by inline function in C?

1010


Explain the meaning of keyword 'extern' in a function declaration.

1117


What is #include conio h?

947


In C, What is the #line used for?

2099


Explain what is a stream?

1035


What are actual arguments?

1048


Is it better to bitshift a value than to multiply by 2?

1053


What is ambagious result in C? explain with an example.

2553


formula to convert 2500mmh2o into m3/hr

943


What is the difference between strcpy() and memcpy() function in c programming?

1030


What does c mean in standard form?

1108


write a program fibonacci series and palindrome program in c

980


What is an identifier?

979


Explain low-order bytes.

979