Question: a) Describe two common uses of the NULL pointer in linked-list implementations. b) Given the following C++ statements, indicate what they accomplish. class node {

 a) Describe two common uses of the NULL pointer in linked-list

a) Describe two common uses of the NULL pointer in linked-list implementations. b) Given the following C++ statements, indicate what they accomplish. class node { public: typedef double value_type: node(const value_type& init_data = value-type(), node* init_link = NULL) {data_field = init_ data: link_field = init_link;} ..//member functions private: value_type data_field: node* link_field: }

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!