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 implement stack work as a queue?

Answer Posted / shruti

it can be done using linked list.
create a linked list as a stack..

while displaying
display reverse. :-)

i can write a code for u if u want..

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is pointer to pointer in c language?

1207


What is meant by preprocessor in c?

1067


Tell me the use of bit field in c language?

1104


Explain zero based addressing.

1095


Why do we use null pointer?

1111


Explain the Difference between the New and Malloc keyword.

1185


Why is sizeof () an operator and not a function?

1089


What is your stream meaning?

1331


Give me the code of in-order recursive and non-recursive.

1421


Differentiate between new and malloc(), delete and free() ?

1230


Why do we use int main?

1142


What are header files and what are its uses in C programming?

1333


How do you define CONSTANT in C?

1362


What is call by reference in functions?

1533


What is difference between far and near pointers?

1104