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
What are types of structure?
Explain what header files do I need in order to define the standard library functions I use?
What is function and its example?
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
What is c language used for?
Explain what are linked list?
What are the advantages of using Unions?
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
When should a type cast be used?
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
writ a program to compare using strcmp VIVA and viva with its output.
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
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?
In C programming, what command or code can be used to determine if a number of odd or even?
What do you mean by keywords in c?