Assuming that I have the following declaration: double[] average=new average[6]; | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Assuming that I have the following declaration: double[] average=new average[6];

determine the following 1. name of array 2. size of the array 3. first index 4.last index 5-10 access for index 0 to 5

13th Dec 2021, 9:42 AM
Eliakim Renesun Nebres
1 Answer
+ 5
You currently don't have any definition for `average` type. `new` operator needs a valid type to work with. The identifier name <average> conflicts the type name `average`. You probably meant ... double[] average = new double[6]; Please specify relevant language in the tags where you wrote 'help' ☝
13th Dec 2021, 9:51 AM
Ipang