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

can we implement multi-threads in c.

1087


How to draw the flowchart for structure programs?

9260


Differentiate between the expression “++a” and “a++”?

1203


Explain what math functions are available for integers? For floating point?

1062


What is meant by realloc()?

1084


How would you use the functions fseek(), freed(), fwrite() and ftell()?

1104


When we use void main and int main?

1018


What is c language & why it is used?

1031


What is difference between class and structure?

1064


Explain how can type-insensitive macros be created?

954


What is the basic structure of c?

1010


what do the 'c' and 'v' in argc and argv stand for?

1115


How do we declare variables in c?

1008


how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.

1626


What is a memory leak? How to avoid it?

1256