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


Please Help Members By Posting Answers For Below Questions

What the different types of arrays in c?

618


What are the benefits of c language?

651


Can a function argument have default value?

676


Is sizeof a keyword in c?

586


What are dangling pointers? How are dangling pointers different from memory leaks?

630






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

1848


What does sizeof return c?

610


What is difference between union and structure in c?

584


What is structure padding and packing in c?

627


What is %s and %d in c?

594


What is the use of putchar function?

655


Write a program to use switch statement.

662


What is the equivalent code of the following statement in WHILE LOOP format?

772


Explain what is a program flowchart and explain how does it help in writing a program?

653


List a few unconditional control statement in c.

564