The pointer in the last node of a linked list is often set to NULL because:

A. in a search, we need to have some way of knowing when we’ve reached the end of the list
B. it doesn’t point to anything
C. it prevents memory leak
D. it conserves the memory used in the linked list by 25%

A

Computer Science & Information Technology

You might also like to view...

Which of the following tools enables you to make a photo's color warmer or cooler?

A) Color Resolution B) Color Temperature C) Exposure D) Contrast

Computer Science & Information Technology

MC What happens if a print statement includes a function call without parentheses?

a) Python detects the function call and executes normally. b) A syntax error occurs and the program terminates. c) It displays the memory location of the function. d) None of the above.

Computer Science & Information Technology