write a C code
to reverse a string using a recursive function, without
swapping or using an extra memory.
Answer Posted / noone
/* this one is a copy of a earlier one posted i just made a
small adjustment */
void reverse(char *str)
{
if(*str)
{
reverse(str+1);
putchar(*str);
}
}
| Is This Answer Correct ? | 18 Yes | 5 No |
Post New Answer View All Answers
Explain about the constants which help in debugging?
Why is main function so important?
Implement bit Array in C.
what is a function method?give example?
Is it acceptable to declare/define a variable in a c header?
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)
Write a program to generate the Fibinocci Series
What are the types of unary operators?
What is a program flowchart and how does it help in writing a program?
What is the maximum length of an identifier?
Is c is a procedural language?
Where can I get an ansi-compatible lint?
What are identifiers and keywords in c?
What is a pointer variable in c language?
Can you think of a logic behind the game minesweeper.