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...
Design a query plan for the join example in Section 16.3.1, assuming the same table sizes as in that section, but with the following differences:
a. An application at site B requested the join. b. An application at site C requested the join.
Containers are divided into four major categories—sequence containers, ordered associative containers, ___________ and container adapters.
Fill in the blank(s) with the appropriate word(s).
Use Is Empty criteria in a query to select records where there is no entry in a field. _________________________
Answer the following statement true (T) or false (F)
MembersThe tblMembers table contains six fields. The LastName, FirstName, and MemberType fields contain text. The MemberID, JoinDate, and Fee fields contain numbers. The MemberType field contains one of the following letters: F for Family membership, A for one Adult membership, Y for one Youth membership, and S for one Senior membership. What does a LIKE operator in the WHERE clause of a SELECT statement do? What wildcard characters can it be combined with?
What will be an ideal response?