Question: For questions 1 through 5, assume the following singly-linked node class and variable declarations 12 struct nodet 13 14 15 16 h 17 18 class

 For questions 1 through 5, assume the following singly-linked node class

For questions 1 through 5, assume the following singly-linked node class and variable declarations 12 struct nodet 13 14 15 16 h 17 18 class Listt 19 private: 20 21 int data; node *next int size; node *head; node *tail; 23 public: 24 25 26 List)(head NULL; tailNULL; size 0; //another constructor List(const int &value) 28 29 30 31 node *tempnew node) temp->datavalue; head-temp; tail=temp ; size++ 33 i 1. 2. 3. What is the data type of the expression temp->next? What is the data type of the expression temp->data? What is the data type of the expression temp? After a linked list gets initialized with the following statement, answer questions 4 and 5: List myList(5); 4. 5. What is the value of head->data of myList? What is the value of head->next of myList

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!