Node stores elements in accordance to representation of Queue - Data Structure

Q.  Where the elements are stored in accordance to the representation of Queue by a Linked Structure?
- Published on 19 Oct 15

a. mesh
b. node
c. both a & b
d. none of the above

ANSWER: node
 

    Discussion

  • Nirja Shah   -Posted on 16 Nov 15
    If we implement queue as a link-list, then elements are stored in node.
    Example:
    struct node
    {
        int data;
        struct node ∗ next;
    };

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)