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

Is fortran faster than c?

779


Write a program to generate random numbers in c?

851


What is non linear data structure in c?

767


What is a file descriptor in c?

801


Do character constants represent numerical values?

1068


Is c easy to learn?

734


What are the application of c?

836


What is c language and why we use it?

800


How does #define work?

840


How can I manipulate strings of multibyte characters?

809


How main function is called in c?

824


What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers

951


Is c weakly typed?

750


How can you increase the size of a dynamically allocated array?

905


Can you explain the four storage classes in C?

856