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

Consider a language that does not have arrays but does have
stacks as a data type.and PUSH POP..are all defined .Show
how a one dimensional array can be implemented by using two
stacks.

Answer Posted / gingercpu

One to pop and the other to push. Have to maintain all the
elements. Index converted to the # of push and pop

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When is a null pointer used?

1121


Why do we need functions in c?

1025


Where static variables are stored in memory in c?

1004


What are the different properties of variable number of arguments?

1166


How can I implement a delay, or time a users response, with sub-second resolution?

1080


Differentiate abs() function from fabs() function.

1022


How can you increase the size of a statically allocated array?

1081


WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

2382


Explain what are the different file extensions involved when programming in c?

1114


Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;

1079


Under what circumstances does a name clash occur?

1205


What is memory leak in c?

1130


why programs in c are running with out #include? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }

1769


What is enumerated data type in c?

1086


Differentiate between Macro and ordinary definition.

1389