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 data types in c language?

1022


What is mean by data types in c?

980


Is array name a pointer?

1005


in iso what are the common technological language?

2064


Why n++ execute faster than n+1 ?

2878


When a c file is executed there are many files that are automatically opened what are they files?

1068


Can we assign string to char pointer?

1053


What is the size of a union variable?

1017


How are portions of a program disabled in demo versions?

1251


What do you mean by c what are the main characteristics of c language?

994


How do c compilers work?

1066


What is %d called in c?

1189


What are valid signatures for the Main function?

1186


why do some people write if(0 == x) instead of if(x == 0)?

1025


Explain that why C is procedural?

1098