What is the difference between a vector’s size and a vector’s capacity?
What will be an ideal response?
A vector’s size refers to the actual number of elements with values in the vector, whereas the vector’s capacity refers to the total number of memory locations reserved for the vector’s use.
You might also like to view...
When importing data from an Excel workbook, you may NOT:
A) import the data into a new table in the current database. B) append a copy of the records to an open, active table. C) append a copy of the records to an existing table. D) link the data to a table.
Answer the following statements true (T) or false (F)
1. According to the text most operations for the ADT list are exactly the same as the corresponding operations for the ADT sorted list. 2. Private inheritance enables you to use the methods of a base class without giving a client access to them. 3. In an ADT sorted list, the client software determines where to place an entry. 4. According to the text, a chain of linked nodes provides a reasonably efficient implementation of the sorted list. 5. A sorted list is-a list. It is appropriate to use public inheritance. 6. Private inheritance does not allow you to use an instance of SortedListAsA wherever you can use an instance of LinkedList.