C

Topic: Structures and union

How to convert Stack in to Queue and v varsa c with data structure.?

Had it been vice versa queue to stack it would have been done easily by keeping the front pointer fixed.Simply saying by having one more function in the implementation part.But if you want to have a queue from a stack ... i think you might need to change the structure itself again it would end up as a queue itself ...or use two stacks ;-)

Browse random answers:

What is a priority queue?
How to build an expression trees ?
How to convert Stack in to Queue and v varsa c with data structure.?
How do display the list in single linked list form last to first?
What is the easiest sorting method to use? 
What is the quickest sorting method to use? 
What is the quickest searching method to use? 
What is the difference between structure and union?
Can we initialize unions?
Why can’t we compare structures?
How are structure passing and returning implemented?
What is a structure?
What are the differences between structures and union?
What is a union?
What the advantages of using Unions?
which one is better structure or union?(other than the space occupied )
How will you free the allocated memory?
What is the difference between UNION and UNION ALL?
Describe structures and Union in brief.
What are the properties of Union? 
What the advantages of using Unions?
Difference between structure and union?
What is a structure and a union in C?
 What are bit fields? What is the use of bit fields in a Structure declaration?
Explain with an example the self-referential structure.
what is the similarity between a Structure, Union and enumeration?
What are bit fields? What is the use of bit fields in a Structure declaration?
What the advantages of using Unions?
How can we read/write Structures from/to data files?
"union" Data Type What is the output of the following program? Why?
Which is the best sorting method?
What's the difference between these two declarations?