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
Is fortran faster than c?
Write a program to generate random numbers in c?
What is non linear data structure in c?
What is a file descriptor in c?
Do character constants represent numerical values?
Is c easy to learn?
What are the application of c?
What is c language and why we use it?
How does #define work?
How can I manipulate strings of multibyte characters?
How main function is called in c?
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers
Is c weakly typed?
How can you increase the size of a dynamically allocated array?
Can you explain the four storage classes in C?