What are the differences between a linked list and a stack?
What will be an ideal response?
It’s possible to insert a node anywhere in a linked list and remove a node from anywhere in a linked list. Nodes in a stack may only be inserted at the top of the stack and removed from the top of a stack.
Computer Science & Information Technology
You might also like to view...
Which of the following prints the address of character string string given the following declaration?
char * string = "test"; a. cout << string; b. cout << *&string; c. cout << static_cast< void * >( string ); d. cout << * string;
Computer Science & Information Technology
The notation
A) will be rejected by the Compiler as an error B) declares a generic type that implements the Comparable interface C) is used when there is a recursive definition of the generic type E D) None of the above
Computer Science & Information Technology