Question: An array is declared as: double myList [ 1 ] ; The above line assumes the array will contain ONE element. To initialize that one

An array is declared as:
double myList[1];
The above line assumes the array will contain ONE element. To initialize that one element to 10:
myList[10]:
myList[0]=10
myList[1]=10;
An array is declared as: double myList [ 1 ] ;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!