✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
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: