2
From what I have seen, it is possible to initialize a vector with the empty list, in C++, but not in C, so that all vector elements are 0:
int meuVetor[10] = {}; // Todos os elementos 0, em C++
What I’ve learned in that reply soen.
It is possible, however, to initialize a matrix in this way?
int minhaMatriz[10][10] = {};
All its elements would be 0?
All I tested was segmentation failure, but I can’t tell if it was related.
Mine worked: https://ideone.com/BLv169. Yours doesn’t seem to do otherwise.
– Maniero
It’s a memory overflow problem, shrinking gets right.
– Maniero