Solved

If You Do Not Know the Size of the Array

Question 45

Multiple Choice

If you do not know the size of the array needed, you can create an array large enough to hold any number of entries and tell users to enter a predetermined sentinel value after they enter the last value. Using this approach:


A) requires that you increment a counter as values are entered so that you know how many elements are stored in your array
B) is preferred to defining a static sized array.
C) requires that you dimension the array to hold at least 100 entries.
D) requires the array be defined to hold string elements.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents