I need to dynamically create an array of integer. I\'ve found that when using a static array the syntax
int a [5]={0};
initializes correctl
I'd do:
int* a = new int[size]; memset(a, 0, size*sizeof(int));