How to reverse a string using a recursive function, without
swapping or using an extra memory?
Answers were Sorted based on User's Feedback
Answer / mahendra aseri
Using recursive Function:
void rev_str(char *str)
{
if(*str!=NULL)
rev_str(str+1);
printf("%c",str);
}
| Is This Answer Correct ? | 20 Yes | 43 No |
What does the format %10.2 mean when included in a printf statement?
write a program that will read the temperature in Celsius and convert that into Fahrenheit.
main() { int x=20,y=35; x = y++ + x++; y = ++y + ++x; printf("%d %d\n",x,y); }
27 Answers Advent Global Solutions, CitiGroup, Valeo Lighting Systems India Private Limited, Vishal Transformers, Wipro, Zencer,
What are the two types of structure?
prototype of sine function.
how 2 compile & execute c program with out using editor?
what is the difference between unix os and linux os
what is bitwise operator?
Explain how can I remove the trailing spaces from a string?
is it possible to change the default calling convention in c ?
What is an anonymous union and where to apply that ?
What are header files and what are its uses in C programming?