The problems with fixed size arrays
Declaring an array with a fixed size like
int a[100000];
has two typical problems:

Exceeding maximum. Choosing a real maximum is often impossible because the programmer has no control over the size of the data sets the user is interested in. Erroneous assumptions that a maximum will never be exceeded are the source Read More →