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:

Verified
Correct Answer:
Verified
Q30: Which of the following statements declares alpha
Q31: Suppose that list is an array of
Q32: In a two-dimensional array, the elements are
Q33: What is the value of alpha[2] after
Q34: Given the following declaration: <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB4785/.jpg" alt="Given
Q35: Given the declaration int list[20]; the statement
Q36: The word _ is used before the
Q38: When you pass an array as a
Q39: After the following statements execute, what are
Q40: Consider the following declaration: int alpha[5] =