I'm still new to C++ and I've got a question concerning arrays as parameters in functions/ constructors. I've realized that it is possible to declare an array in two ways (maybe there are more, which I haven't seen before):
1.
void foo(int arr[]);
2.
void foo(int arr);
In both cases, arr can be used in the following way:
arr[0] = 1;
But what is the difference between those? Or is it just a matter of clarity?