write a C code
to reverse a string using a recursive function, without
swapping or using an extra memory.
Answer Posted / sampath
void reverse(*str)
{
if(*str)
{
reverse(str+1);
putchar(*str);
}
}
| Is This Answer Correct ? | 58 Yes | 51 No |
Post New Answer View All Answers
Explain what are the standard predefined macros?
cavium networks written test pattern ..
What is an auto keyword in c?
What are the different data types in C?
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
Is exit(status) truly equivalent to returning the same status from main?
How reliable are floating-point comparisons?
Which is better between malloc and calloc?
write a progrmm in c language take user interface generate table using for loop?
Why is c faster?
Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"
Why c is called top down?
What is the difference between null pointer and wild pointer?
Is struct oop?
What is the difference between #include