1. Question:What is FIFO? 

    Answer
    In C programming, there is a data structure known as queue. In this structure, data is stored and accessed using FIFO format, or First-In-First-Out. A queue represents a line wherein the first data that was stored will be the first one that is accessible as well.

    1. Report
  2. Question:What are the advantages and disadvantages of a heap? 

    Answer
    Storing data on the heap is slower than it would take when using the stack. However, the main advantage of using the heap is its flexibility. That’s because memory in this structure can be allocated and remove in any particular order. Slowness in the heap can be compensated if an algorithm was well designed and implemented.

    1. Report
Copyright © 2024. Powered by Intellect Software Ltd