We do not use a long chain of ->next’s when working with a linked list (for example, ptr->next->next->next->next->next->info) because:
A. we often do not know how long the linked list is, so we use a loop to move a pointer through the list
B. we can only use one next at a time (C++ does not permit more than one in an
expression)
C. it can become an infinite loop
D. doing so can cause memory leak
A
You might also like to view...
When the next() method of Iterator is called at the end of a collection, it
A) throws NoSuchElementException B) returns null C) wraps around to the beginning of the collection and returns the first element D) returns the a copy of the last element returned
A(n) ________ cable contains a glass or plastic core
Fill in the blank(s) with correct word
A good rule of thumb is to design your website so that viewers are never more than ____ clicks away from the page they are seeking.
A. one or two B. two or three C. five or six D. seven or eight
If an accountant is generating employee paychecks for last week's payroll, the accountant is retrieving data from the company's ________ database
A) data warehouse B) payroll database C) transactional D) operational