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
What the different types of arrays in c?
What are the benefits of c language?
Can a function argument have default value?
Is sizeof a keyword in c?
What are dangling pointers? How are dangling pointers different from memory leaks?
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
What does sizeof return c?
What is difference between union and structure in c?
What is structure padding and packing in c?
What is %s and %d in c?
What is the use of putchar function?
Write a program to use switch statement.
What is the equivalent code of the following statement in WHILE LOOP format?
Explain what is a program flowchart and explain how does it help in writing a program?
List a few unconditional control statement in c.