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
What language is c written?
When can you use a pointer with a function?
What is time null in c?
Which is an example of a structural homology?
What is equivalent to ++i+++j?
Write a program to check whether a number is prime or not using c?
What is the difference between near, far and huge pointers?
please send me the code for multiplying sparse matrix using c
What is preprocessor with example?
Can static variables be declared in a header file?
What is the difference between class and object in c?
Difference between linking and loading?
how logic is used
Can we assign string to char pointer?
Explain what is the benefit of using an enum rather than a #define constant?