asked 19.5k views
0 votes
When an ages array is correctly initialized using the values {20, 30, 40, 50}, then the value of ages[1] is _______________________. 20 30 undefined 0

1 Answer

3 votes

Answer:

ages[1] is 30

Explanation:

The index of an array start counting from zero. So, based on the given array,

20 = index 0

30 = index 1

40 = index 2

50 = index 3

Therefore, ages[1] = 30

answered
User Sfrehse
by
7.6k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.