New course! Every coder should learn Generative AI!
Try a free lesson0
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
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' ☝