#include <iostream>
using namespace std;
int main()
{
    int x[45]={5,3}, y=1, z=1;
    int i=45;
    while (x[--i])
    {
        
        cout<<"inside"<<endl;
    }
    cout<<i<<endl;
}
All it does is skipping the cycle, reducing i by 1 and ending the script. Like why does it never gets inside the cycle? Shouldn't it repeat the cycle 45 times until i is zero? I've got no clue.
 
     
    