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 impliment 2 or more stacks in a single dimensional
array ?

Answer Posted / sakthigurunathan

to implement two stacks in a single array consider two
stacks growing towards each other and take tos1=-1
andtos2=max as empty condition and for full condition take
tos1=tos2-1 and to insert take push1 tos1++
and for push2 tos--

Is This Answer Correct ?    36 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of c language?

1052


Define macros.

1230


Why c language is called c?

961


Explain the difference between exit() and _exit() function?

1122


Is array name a pointer?

1003


What is static identifier?

1180


Is c is a procedural language?

1044


Explain how are portions of a program disabled in demo versions?

1083


What is meant by realloc()?

1101


my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?

1542


Explain can static variables be declared in a header file?

1115


Write a Program to find whether the given number or string is palindrome.

1239


Can you mix old-style and new-style function syntax?

1064


When should a far pointer be used?

1074


What is s in c?

1012