write a C code
to reverse a string using a recursive function, without
swapping or using an extra memory.
Answer Posted / asdf
void reverse(*str)
{
if(*str){
reverse(++str);
str--;
printf("%c",*str);
}
}
| Is This Answer Correct ? | 16 Yes | 9 No |
Post New Answer View All Answers
How can I sort a linked list?
What is external variable in c?
What is a stream?
What is advantage of pointer in c?
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
Why does the call char scanf work?
What is the difference between far and near ?
Explain how can a program be made to print the line number where an error occurs?
Explain what is the difference between far and near ?
Can a pointer be volatile in c?
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
Explain how can a program be made to print the name of a source file where an error occurs?
What is typeof in c?
What is volatile variable in c?
How a string is stored in c?