Question: Read the code segment and fill in blank #23. 1. item 2. *location.next 3. (*location).next 4. predLoc 5. answer not shown 4 Class Unsorted Type
Read the code segment and fill in blank #23. 1. item 2. *location.next 3. (*location).next 4. predLoc 5. answer not shown

4 Class Unsorted Type { public: //all the prototypes go here. private: int length; Node Type* listData; }; void UnsortedType: : DeleteItem(ItemType item) // Pre: Item is in list { } NodeType tempPtr; NodeType* predLoc; Node Type* location; bool found= false; location = listData; predLoc= length--; // Find node to delete. while ( ) { switch ( { case GREATER: ; case LESS break; case EQUAL : found = break; } } // delete location tempPtr = if ( else predLoc= location; location = predLoc->next delete tempPtr; // pointer delete // trailing pointe // traveling point = location->next; =
Step by Step Solution
3.40 Rating (163 Votes )
There are 3 Steps involved in it
In the provided code segment we are examining the UnsortedTypeDeleteItem function which is intended ... View full answer
Get step-by-step solutions from verified subject matter experts
