The correct answer is D. inventory(4).intQuantity=100.
The array inventory is declared with 4 elements. The last element of the array is inventory(4). The intQuantity member variable is contained in each element of the array. To assign the number 100 to the intQuantity member variable contained in the last array element, we use the following statement:
inventory(4).intQuantity=100
Option A is incorrect because it uses the wrong syntax. The syntax for accessing a member variable of an array element is:
arrayName(index).memberVariableName
In this case, the index is 4.
Option B is incorrect because it uses
448 288 448 288 448s170.8 0 213.4-11.5c23.5-6.3 42-24.2 48.3-47.8 11.4-42.9 11.4-132.3 11.4-132.3s0-89.4-11.4-132.3zm-317.5 213.5V175.2l142.7 81.2-142.7 81.2z"/> Subscribe on YouTube