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
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What is n in c?
What is hash table in c?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
Do you know null pointer?
What is a constant and types of constants in c?
Why is C language being considered a middle level language?
Explain what are bus errors, memory faults, and core dumps?
What are the functions to open and close file in c language?
How do I get an accurate error status return from system on ms-dos?
Is c easy to learn?
What is the basic structure of c?
Write a progarm to find the length of string using switch case?
Why is c called "mother" language?
FILE PROGRAMMING