What does it mean in array

Hello all,
I'm a beginner of learning c++,
I'm creating a 2-d array printing 8x8 board.
What does this line of declaration mean?
it doesn't seems like initializing 0 to all 8x8 array,
Please explain, thank you :)

 
  int a[8][8]={0};
It doesn't seems like initializing 0 to all 8x8 array
It does.
thank you for your reply.
but when I put the number for example: a[8][8]={3} (or any other number)
it didn't turn out all 3, but still all 0, why is that? :o
int a[8][8]={0};
Zero initialises all elements.

a[8][8]={3}
Sets the first element to 3 and zero initialises the rest.

If you want to initialise your array to a certain value, you could:
- Use a for loop
- http://www.cplusplus.com/reference/algorithm/fill/
- http://www.cplusplus.com/reference/algorithm/fill_n/
@integralfx

THANK YOU SO MUCH!
Topic archived. No new replies allowed.