What is the value of a [4]? Int a[5]={1,2,4,1,0}
Answers
Answered by
0
The value of a[4} is 0.
int a[5] ={1,2,4,1,0}.
- The above statement signifies that a is an array that contains integer elements and the size of the array is 5.
{ 1,2,4,1,0} are the elements of the array.
- The index of the first element 1 is 0.
- The index of the second element 2 is 1.
- The index of the third element 4 is 2.
- The index of the fourth element 1 is 3.
- The index of the fifth element 0 is 4.
The value of a[4] depicts that what is the value of the element at the 4th index of the array that is 0.
Similar questions