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

void reverse(char s[],int len)
{
putchar(s[len]);
len--;
if(len>=0)
reverse(s,len);

return;
}

Is This Answer Correct ?    49 Yes 33 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are types of structure?

1064


Explain what header files do I need in order to define the standard library functions I use?

1114


What is function and its example?

1109


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

3018


What is c language used for?

922


Explain what are linked list?

988


What are the advantages of using Unions?

1066


How to write a code for implementing my own printf() and scanf().... Please hep me in this... I need a guidance... Can you give an coding for c... Please also explain about the header files used other than #include...

5402


When should a type cast be used?

964


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

996


writ a program to compare using strcmp VIVA and viva with its output.

1975


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

1010


A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?

2255


In C programming, what command or code can be used to determine if a number of odd or even?

989


What do you mean by keywords in c?

1083