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...

write a program in reverse the string without using
pointer,array,global variable declaration,lib fun only using
a function?

Answer Posted / r.s.guptha

void reverse()
{
char c = getchar();
if(c=='\n' || c=='\r')
return;
else
reverse();
putchar(c);
}
int main()
{
reverse();
return 0;
}

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does pointer work in c?

1191


What is the significance of an algorithm to C programming?

1094


How can I find out if there are characters available for reading?

1165


What is the -> in c?

1062


Explain what is the difference between functions getch() and getche()?

1109


Explain Function Pointer?

1238


Can we access the array using a pointer in c language?

1089


How is a macro different from a function?

1241


Explain what is the difference between the expression '++a' and 'a++'?

1261


What is the difference between fread buffer() and fwrite buffer()?

1222


a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above

1283


What are the advantages of c language?

1147


What is the difference between mpi and openmp?

1354


Explain main function in c?

1134


7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.

2822