I have two ways of creating an array of N+1 elements, all filled with zeroes.
long int *a=new long int[N+1]();
vs.
long int a[N+1] = {0};
why does the first approach work better with larger inputs while the second one usually results in segmentation fault?