Question: Read the code segment and fill in blank #21. 1. true 2. !found 3. false 4. moreToSearch 5. answer not shown 4 Class Unsorted Type
Read the code segment and fill in blank #21. 1. true 2. !found 3. false 4. moreToSearch 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.51 Rating (154 Votes )
There are 3 Steps involved in it
Based on the code provided the blank 21 under Find node to delete appears to be in a conditional sta... View full answer
Get step-by-step solutions from verified subject matter experts
