Question: Which of the following 5 points statements is a correct initialization of an array of 4 cells? * double [] a1 = new double

Which of the following 5 points statements is a correct initialization of an array of 4 cells? * double [] a1 = new double ( 4 ); O double []a1 = new [ 4 ]; double [] a1 = { 5, 2, -1, 5} O double [ 4]a1 = new { 1, 2, 3, 4 }; %3D O All the above O None of the above
Step by Step Solution
3.43 Rating (156 Votes )
There are 3 Steps involved in it
All of the above With normal variables we could declare on one line then initialize on th... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (2 attachments)
6364e714b3c03_239878.pdf
180 KBs PDF File
6364e714b3c03_239878.docx
120 KBs Word File
