dimanche 25 décembre 2016

Is "new int[8]()" equivalent to "new int[8]{}" in C++11?

Is new int[8]() equivalent to new int[8]{} in C++11?

In other words:

Does the C++11 standard guarantee each of new int[8]() and new int[8]{} returns a zero-initialized array?

Aucun commentaire:

Enregistrer un commentaire