Question: C++ C++ Consider the following statement. int *scoreList; a. Write the C++ statement that dynamically creates an array of 100 components of type int and
C++
C++
Consider the following statement.
int *scoreList;
a. Write the C++ statement that dynamically creates an array of 100 components of type int and assigns the base address of the array to scoreList.
Answer: _____________________________
b. Write a C++ code that inputs data into the array scoreList from the standard input device.
Answer: _____________________________
c. Fill in the underlines below to complete a C++ code that finds the index of the smallest entry in the array scoreList.
Answer: int minIndex = ______;
for (int i = 0; i < SIZE; i++)
if (_____________________________)
minIndex = ______;
d. Write a C++ statement that deallocates the memory space of array to which scoreList points.
Answer: ___________________________
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
