The Expected Output is 2000 but it stops on 1980.
Note: The Execution is started from 20 and not from 0 as int i = 1
The Code:
#include <iostream>
using namespace std;
int main() {
const int iarraysize = 100;
int i = 1;
int iarray[iarraysize];
while (i < iarraysize) {
iarray[i] = 20 * i;
cout << iarray[i++] << "\n";
}
}