Solved

Suppose That Sales Is an Array of 50 Components of Type

Question 37

Multiple Choice

Suppose that sales is an array of 50 components of type double.Which of the following correctly initializes the array sales?


A) for (int 1 = 1; j <= 49; j++)
Sales[j] = 0;
B) for (int j = 1; j <= 50; j++)
Sales[j] = 0;
C) for (int j = 0; j <= 49; j++)
Sales[j] = 0.0;
D) for (int j = 0; j <= 50; j++)
Sales[j] = 0.0;

Correct Answer:

verifed

Verified

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

Related Questions