1. What is the purpose of the following code? current = head; while…
Question Answered step-by-step 1. What is the purpose of the following code? current = head; while… 1. What is the purpose of the following code?current = head;while (current != nullptr){//Process currentcurrent = current->link;} a. Insertion of a nodeb. Selection of a nodec. Traversal of a linked listd. Creation of a new list 2. Consider the accompanying code. What is the effect of the following statement?newNode->info = 50; a. Stores 50 in the info field of the newNode b. Creates a new node c. Places the node at location 50 d. Cannot be determined from this code Computer Science Engineering & Technology C++ Programming COMPUTER S 23245 Share QuestionEmailCopy link Comments (0)


