Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - In C language, if you want to assign all the elements in an array to zero, you don't have to assign an initial value to the array, right?
In C language, if you want to assign all the elements in an array to zero, you don't have to assign an initial value to the array, right?
When the array (external variable) is defined outside the function, the correct statement and understanding are correct.

When defined in a function (local variable), to make all elements zero, you can:

Internationalorganizations (same as international organizations)

a[ 10]= { }; Do this.

The book should say that when initializing, there is no meta-display initialization.

By default, the initial values of elements are all set to 0.