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

Why n++ execute faster than n+1 ?

2987


What is difference between structure and union?

1124


In c language can we compile a program without main() function?

1131


In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping

1509


Differentiate between the = symbol and == symbol?

1293


Difference between MAC vs. IP Addressing

1145


Why cant I open a file by its explicit path?

1027


What is pass by reference in c?

1186


Explain the use of 'auto' keyword

1119


What are 'near' and 'far' pointers?

1035


Give the rules for variable declaration?

1173


Write a program to swap two numbers without using third variable?

1289


Explain the difference between the local variable and global variable in c?

1070


4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.

2180


What is the difference between text files and binary files?

1346