Why can a raw pointer be used as an iterator for an array, but not for a list?
What will be an ideal response?
Because the pointer arithmetic operations do exactly what you need to
traverse an array. Incrementing a pointer to a position an array makes the pointer
point to the next position in the array. Incrementing a pointer to a node in a linked list
probably does not make the pointer point to the next node. To do this requires more
machinery.
You might also like to view...
Which is an example of data you might store in an array?
A. Phone bills B. average temperatures C. grades D. All of the above
To make a cookie available to all directories, use a(n) ____________________ to indicate the root directory.
Fill in the blank(s) with the appropriate word(s).
The preprocess directive #region can be added in the program to ____.
A. mark sections of code that can be expanded or collapsed B. identify all the code inserted automatically by Visual Studio C. indicate you should not change the code found in that section D. communicate that the section of code should be processed first
____________________ is the ability to analyze one's thought processes (to think about thinking).
Fill in the blank(s) with the appropriate word(s).