MCQOPTIONS
Saved Bookmarks
| 1. |
Consider the following code snippetfunction tail(o){for (; o.next; o = o.next) ;return o;}Will the above code snippet work? If not, what will be the error? |
| A. | o, this will throw an exception as only numerics can be used in a for loop |
| B. | o, this will not iterate |
| C. | es, this will work |
| D. | o, this will result in a runtime error with the message “Cannot use Linked List” |
| Answer» D. o, this will result in a runtime error with the message “Cannot use Linked List” | |