Question: (c) An array can be partially filled, i.e., the number of elements actually stored Ii the rray can be smaller than it's capacity (the maximum
(c) An array can be partially filled, i.e., the number of elements actually stored Ii the rray can be smaller than it's capacity (the maximum number of elements it can hold). We studied two different ways to represent partially filled array: using an accompanying int variable, and using a special value to indicate the end of filled part. const int CAPACITY-11; int a [CAPACTY); // store positive int values, using-999 to indicate the end of // partially filled array cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
