The solution of the given problem is below:
The value of maxScores[3] will be 50.
Explanation-- This is an array problem. here array name is maxScores having size 4 ,it means the array maxScores will store the four integers value. in programming the value of array is acessing through subscript (index). we can acess the element in array directly by using index value like if i want to acess the element at position 2 then we have to write arrayname[2]. in the same way maxScores[3] will print the value at position 4 which is 50 because the index has been done from 0. Maxsxore[3] means value of an array at position 4 because index is from 0 (0,1,2,3).
here is screenshot of the executed code in which u can see result when the above code complies.
Please upvot in case of any query comment me.
Get Answers For Free
Most questions answered within 1 hours.