Question: COMP SCI QUESTION HELP 3. (10 pts.) Fill in the blank in the following function that deletes an element from a linked list recursively. templatecclass
COMP SCI QUESTION HELP

3. (10 pts.) Fill in the blank in the following function that deletes an element from a linked list recursively. templatecclass ItemType> void Delete(NodeTypecitemType>*& listPtr, ItemType item) ll Pre: listPtr has been defined. / item is in the list. /l Post: item has been removed from the list. if (item == --) NodeTypesitemType> * ????? = listPtr= Il 4 else Delete(item); I1 5 1. A. listPtr->info B. tempPtr C. listPtr->next D. listPtr 2. A. listPtr->info B. tempPtr C. listPtr->next D. listPtr 3. A. listPtr->info B. tempPtr C. listPtr->next D. listPtr 4. A. listPtr->info B. tempPtr C. listPtr->next D. listPtr 5. A. listPtr->info B. tempPtr C. listPtr->next D. listPtr
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
