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

void reverse(*str)
{
if(*str)
{
reverse(str+1);
putchar(*str);
}
}

Is This Answer Correct ?    58 Yes 51 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the best way to comment out a section of code that contains comments?

1283


What is the purpose of sprintf?

1083


i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

1933


Why double pointer is used in c?

1003


why return type of main is not necessary in linux

2060


What is Dynamic memory allocation in C? Name the dynamic allocation functions.

1348


Why is #define used?

1238


How do you print only part of a string?

980


simple program of graphics and their output display

1956


Write a Program to accept different goods with the number, price and date of purchase and display them

6168


In a header file whether functions are declared or defined?

1096


What is mean by data types in c?

982


What is a shell structure examples?

1049


Why can arithmetic operations not be performed on void pointers?

999


How do you initialize pointer variables?

1046