C++ Arrays Quiz - Question 4

Last Updated :
Discuss
Comments

Which of the following correctly initializes an array of 3 integers to 0?

int arr[3] = {};

int arr[3] = {0, 0, 0};

int arr[3] = {0};

All of the above

Share your thoughts in the comments
Article Tags :