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
How to write a code for reverse of string without using string functions?
Can a file other than a .h file be included with #include?
Do character constants represent numerical values?
Can we add pointers together?
Why can arithmetic operations not be performed on void pointers?
What is indirection in c?
why wipro wase
What is c standard library?
What tq means in chat?
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
can any one provide me the notes of data structure for ignou cs-62 paper
What is variable declaration and definition in c?
the question is that what you have been doing all these periods (one year gap)