26. Given a linked list (using the code from the book), which of the following sets of statements would implement a function to return the last item in the list?
a.
NodePtr here;
here=head;
while(here->link != NULL)
{
here = here ->link;
}
return here->data;
b.
NodePtr here;
here=head->link;
while(here != NULL)
{
here = here ->link;
}
return here->data;
c.
NodePtr here;
while(here->link != NULL)
{
here = here ->link;
}
return here->data;
d.
NodePtr here;
here=head;
while(here->link != NULL)
{
here = here ->link;
}
a.
NodePtr here;
here=head;
while(here->link != NULL)
{
here = here ->link;
}
return here->data;
You might also like to view...
Which of the following is NOT true about using fill colors?
A) Fill color can be used to band rows or columns as a means of assisting the reader to follow information across or down a worksheet. B) Fill color refers to the border color and style of a cell. C) Fill color can be used to categorize information. D) Fill color can be used to highlight values.
In a media query for responsive design, you follow the media type with one or more media __________, which specify conditions that the media must satisfy for the rules in the media query to be applied..
A. details B. features C. modes D. values