C/C++: How does int array[10]={0} work?

Viewed 7601

I am wondering how does int array[10]={0} really work?

Does it go all the way through the entire array like this?

for(int i=0;i<10;i++) array[i]=0;

Or is it more efficient?

2 Answers
Related