Question
If you declare an array as follows, how do you indicate the final element of the array?int[] nums = new int[6];a. nums[0]b. nums[5]c. nums[6]d. impossible to tell
Step 1
The declaration `int[] nums = new int[6];` creates an array named `nums` that can hold 6 integer elements. Show more…
Show all steps
Your feedback will help us improve your experience
Watch the video solution with this free unlock.
EMAIL
PASSWORD