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

In c language can we compile a program without main() function?

1139


What are the advantage of c language?

1054


how is the examination pattern?

2025


How can I read/write structures from/to data files?

976


Without Computer networks, Computers will be half the use. Comment.

2307


what do u mean by Direct access files? then can u explain about Direct Access Files?

2096


List the variables are used for writing doubly linked list program.

2036


What is an arrays?

1082


What is #include conio h?

1003


What is scope rule in c?

1074


How to declare a variable?

1011


How can I do serial ("comm") port I/O?

1184


in linking some of os executables are linking name some of them

2143


Why is void main used?

1097


What is storage class?

1080