I created a dynamic array ,and i need to initialize all the members to 0. How can this be done in C?
int* array; array = (int*) malloc(n*sizeof(int));