Initializing all the elements of a double dimensional array with constant size like this works:
int A[10][10]={0};
But initializing all elements of a double dimensional array with variable size specified, as below, does not works :
int n=10, m=10;
int A[m][n] = {0};
Why is it so and what is the best way to figure it out?