Is there a way (with C++11) to zero-initialize a multidimensional array in a class constructor?
Does this initialize the whole array to zero or just the first dimension?
class Example
{
public:
int array[100][100];
Example():array{}
{
};
};
Aucun commentaire:
Enregistrer un commentaire