Question: Read the code segment and fill in blank #25. 1. preLoc 2. location 3. predLoc->next 4. location->next 5. answer not shown 4 Class Unsorted Type
Read the code segment and fill in blank #25. 1. preLoc 2. location 3. predLoc->next 4. location->next 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.34 Rating (160 Votes )
There are 3 Steps involved in it
The image presents a snippet of C code for the UnsortedType class method DeleteItem This method is d... View full answer
Get step-by-step solutions from verified subject matter experts
