Usually when we initialize an array, we would probably do:
int arr[] = {1, 2, 3, 4, 5};
But is it ok to explicitly limit the length of the array as below? :
int arr[3] = {1, 2, 3, 4, 5};
Despite some warnings from the compiler, the executable doesn't seem to have any problems.