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

Differentiate between ordinary variable and pointer in c.

1185


any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above

1050


Explain what is a 'locale'?

1082


Is array a primitive data type in c?

1061


What does int main () mean?

1027


Here is a good puzzle: how do you write a program which produces its own source code as output?

1101


What is the use of a ‘’ character?

1091


Why enum is used in c?

961


Why do we need functions in c?

1022


write a progrmm in c language take user interface generate table using for loop?

2050


What are the different types of control structures?

1046


Write a program to reverse a given number in c language?

1118


What does *p++ do? What does it point to?

1065


Which is an example of a structural homology?

1326


Where register variables are stored in c?

970