How to reverse a string using a recursive function, without
swapping or using an extra memory?
Answer Posted / aravind
#Include<stdio.h>
void display(char*)
void main()
{
char str[]= "Aravind"
disply(str)
}
void display(char *p)
{
static int i=1;
if(*p=='\0')
{
display(p+i)
i++
}
printf("%c",*p)
}
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why c is called object oriented language?
Explain about the functions strcat() and strcmp()?
Write a program which returns the first non repetitive character in the string?
Between macros and functions,which is better to use and why?
What are directives in c?
how many errors in c explain deply
write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34
Why do we write return 0 in c?
How does struct work in c?
Is calloc better than malloc?
code for quick sort?
How can you find the day of the week given the date?
Is flag a keyword in c?
What is structure padding in c?
Differentiate between the expression “++a” and “a++”?