Question

What elements does the array numbers contain after the following code is executec int[] numbers = new int [8]; numbers [1] =
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer: ------> Option B---> [0, 3, 11, 44, 99, 0, 0, 2]------> Option B

Initally after executing first 4 lines array is

Arr = [0, 3, 0, 0, 99, 0, 0, 2]

x = 3
numbers[3] = 44
Arr = [0, 3, 0, 44, 99, 0, 0, 2]

numbers[numbers[7]] =numbers[​​​​​​​2] = 11

Arr = [0, 3, 11, 44, 99, 0, 0, 2]

========================================
Thanks, let me now if there is any concern.

Add a comment
Know the answer?
Add Answer to:
What elements does the array numbers contain after the following code is executec int[] numbers =...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT