I learned that arrays have some constant value for its size. For example;
int array[5]; //This array have only 5 index that can be usable
This is what I've learned.
But when I try this code it is not square with this hypothesis.
#include <iostream>
using namespace std;
int main()
{
    int array[4];   
    array[5]=6; 
    cout<<array[5]<<endl;   
    return 0;
}
This code works well. So I am confused.
 
     
     
     
     
     
    