103k views
4 votes
Which of the following declares appropriate storage for a resizable array of resizable C-style strings?

a) vector>
b) char
c) string
d) deque>

User Wessie
by
7.8k points

1 Answer

6 votes

Final answer:

The appropriate storage for a resizable array of resizable C-style strings is the vector<string> option.

Step-by-step explanation:

The appropriate storage for a resizable array of resizable C-style strings would be the vector<string> option. The vector container in C++ allows for dynamic resizing of the array and the string type represents C-style strings. Therefore, the combination of vector and string provides a suitable solution for this scenario.

User Eduardo Lino
by
8.6k points