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

Explain what is operator promotion?

1088


Why can't I perform arithmetic on a void* pointer?

1101


Explain how does flowchart help in writing a program?

1122


what is a NULL Pointer? Whether it is same as an uninitialized pointer?

1282


What are the basic data types associated with c?

1274


What is the use of volatile?

1087


What are the advantages of union?

1071


What are terms in math?

1052


How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?

16791


How can I manipulate strings of multibyte characters?

1115


How many keywords are there in c?

1080


What is the code for 3 questions and answer check in VisualBasic.Net?

2164


An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

1236


Why main function is special give two reasons?

1548


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

2150