VOOZH about

URL: https://www.geeksforgeeks.org/c-sharp/c-sharp-remove-all-objects-from-the-queue/

⇱ C# | Remove all objects from the Queue - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

C# | Remove all objects from the Queue

Last Updated : 11 Jul, 2025
Queue represents a first-in, first out collection of object. It is used when you need a first-in, first-out access of items. When you add an item in the list, it is called enqueue, and when you remove an item, it is called deque. Queue is used to remove the objects from the Queue
Output:
Total number of elements in the Queue are : 5
Total number of elements in the Queue are : 0
Reference:
Comment

Explore