Revise the method getPointerTo so that it does not use the local variable result, but instead executes a return statement after each test is completed.

What will be an ideal response?

```
template
Node* LinkedBagRecursive::
getPointerTo(constItemType& target,
Node* curPtr) const
{
if (curPtr != nullptr)
{
if (target == curPtr->getItem())
return curPtr;
else
return getPointerTo(target, curPtr->getNext());
} // end if

return result;
} // end getPointerTo

```

Computer Science & Information Technology

You might also like to view...

Backing up a database is important and should be done regularly so that a copy of the original database will be available if you need it to avoid:

A) starting over. B) modifications. C) losing data. D) enabling content.

Computer Science & Information Technology

A crosstab query always has at least one row heading, one column heading and one summary field

Indicate whether the statement is true or false

Computer Science & Information Technology