Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How to write a code for reverse of string without using string functions?

2090


Can a file other than a .h file be included with #include?

1111


Do character constants represent numerical values?

1292


Can we add pointers together?

1019


Why can arithmetic operations not be performed on void pointers?

995


What is indirection in c?

1035


why wipro wase

2264


What is c standard library?

1158


What tq means in chat?

1076


What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?

1398


any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

1091


hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm

1981


can any one provide me the notes of data structure for ignou cs-62 paper

2133


What is variable declaration and definition in c?

868


the question is that what you have been doing all these periods (one year gap)

2032