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
What is the best way to comment out a section of code that contains comments?
What is the purpose of sprintf?
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
Why double pointer is used in c?
why return type of main is not necessary in linux
What is Dynamic memory allocation in C? Name the dynamic allocation functions.
Why is #define used?
How do you print only part of a string?
simple program of graphics and their output display
Write a Program to accept different goods with the number, price and date of purchase and display them
In a header file whether functions are declared or defined?
What is mean by data types in c?
What is a shell structure examples?
Why can arithmetic operations not be performed on void pointers?
How do you initialize pointer variables?