I'm doing a practice worksheet and I'm asked what the value of each of the array elements listed below. This may seem like a stupid question but how do you find the value of array elements.
I don't see how you can answer the question. Its like I am shown a closed pot and someone asks what's in the pot? The only answer is "whatever was put into it' which isn't very satisfying especially when that's the answer for all of them.
If the question mark was written '?' then the story would be completely different.
:)
I probably should have put down the answer for the previous question. It asked me to create an array of type int named myArray and initialize it with the following list: 0,2,3,4,5,6 heres what I put.
int myArray= new int[]{0,2,3,4,5,6};