160k views
0 votes
Given the following code, what will it display?

int numbers[ ] = {99, 87, 66, 55, 101 };
cout << numbers[3] << endl;

User Zmechanic
by
7.1k points

2 Answers

4 votes
number#4 = 55 ; start counting from 0
User Aserwin
by
8.0k points
0 votes
we are given the following set : int numbers[ ] = {99, 87, 66, 55, 101 }; where the numbering of each elements starts from zero to four. In this case, zero is 99, one is 87, two is 66, three is 55 and four is 101. When cout << numbers[3] << endl; the answer is 55
User Vehovmar
by
8.5k points