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
Q13: Given the declaration int list[20]; the statement
Q14: What is the value of alpha[2] after
Q15: Arrays can be passed as parameters to
Q16: What is the output of the following
Q17: Which of the following statements declares alpha
Q19: Suppose that list is an array of
Q20: The array index can be any integer
Q21: Consider the following statement: int alpha[25][10];.Which of
Q22: Which of the following correctly declares name
Q23: Consider the following declaration: int alpha[5] =
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents