Solved

Which of the Following Conditions Will Enable This KW::list Function

Question 19

Multiple Choice

Which of the following conditions will enable this KW::list function to perform its task?

void push_back(const Item_Type& item) {
if(
tail->next = new DNode(item, tail, NULL) ; // Step 1
tail = tail->next; // Step 2
num_items++;
} else {// List was empty.
push_front(item) ;
}
}


A) tail->next != NULL
B) tail != NULL
C) tail == NULL
D) tail->next == NULL

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents