Can a linked list store data other than integers?

Skill/Topic: Stacks and Queues: Insert, Delete, Peek, Find
A) Yes
B) No
Explanation: Integers are usually used, but you can modify the data type of the data in the definition of the node to change the kind of data stored in the linked list.

Showing Answers 1 - 3 of 3 Answers

Rahul Goyal

  • Jul 20th, 2012
 

link list is a data structure not a property of integers...
so, the data the it store can be anything like a class object or structure object etc.

  Was this answer useful?  Yes

real

  • Oct 18th, 2012
 

When we are using structure variable then i will say yes!

Code
  1. struct node{

  2. int info;

  3. string name;

  4. float average;

  5. node *node;

  6. };

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions