Computers and Technology, 27.04.2021 17:20, miathegeek97
Recall the definition of LinkedList from class. I've made a doubly linked list which is a child class of LinkedList. A doubly linked list has a first and last node and each node has a previous and a next pointer to other nodes. What is wrong with this function (it would be defined in DLinkedList. h but the error is in this function)?
virtual void insertEnd(LLNode * toAdd)
{
LLNode * oldLast = getLastNode();
oldLast->setNext(toAdd);
p_last = toAdd;
toAdd->setPrev(oldLast);
}
Select one:
a. The previous pointer for the added node was not set.
b. oldLast may be NULL and can cause a NULL pointer exception.
c. insertEnd in LinkedList is a private function
d. If toAdd is NULL, "oldLast->setNext(toAdd);" causes a NULL pointer exception.
Answers: 3
Computers and Technology, 22.06.2019 11:30, neekWYB
Andrina writes letters that are regularly sent to hundreds of her company’s customers. because of this, she would like for the mail merge command to be in her quick access toolbar, and she wants it to be the first button on the left. what should andrina do to place the mail merge button there?
Answers: 1
Computers and Technology, 22.06.2019 15:30, mariap3504
Whats are the different parts of no verbal comunication, especially body language?
Answers: 3
Recall the definition of LinkedList from class. I've made a doubly linked list which is a child clas...
Mathematics, 30.12.2021 02:40
Chemistry, 30.12.2021 02:40
History, 30.12.2021 02:40
Mathematics, 30.12.2021 02:40
Biology, 30.12.2021 02:40
SAT, 30.12.2021 02:40