Consider the following declaration: double[] sales = new double[50]; int j; Which of the following correctly initializes all the components of the array sales to 10.
(i) for (j = 0; j < 49; j++) sales[j] = 10;
(ii) for (j = 1; j < = 50; j++) sales[j] = 10;
+4
Answers (1)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Consider the following declaration: double[] sales = new double[50]; int j; Which of the following correctly initializes all the components ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Home » Computers & Technology » Consider the following declaration: double[] sales = new double[50]; int j; Which of the following correctly initializes all the components of the array sales to 10.