How size if allocated in c++ for array? : If  we initialize array with 4 size:

    int array[4];

can we allocate value like this because it is also taking 4 values:

    for(int i=5;i<9;i++){
    
     cin>>array[i];
    }