0

HelP! x < 4; - False. But - x < 5; - True. Why?

#include <iostream> using namespace std; int main() { int arr[] = {85, 82, 970, 932, 753}; int sum = 0; for (int x = 0; x < 4; x++) { sum += arr[x]; } cout << sum << endl; return 0; }

18th Feb 2019, 2:04 PM
Lagesile
Lagesile - avatar
1 Resposta
+ 2
Please elaborate on your question.
18th Feb 2019, 11:56 PM
Diego
Diego - avatar