News for hackers. Stuff that matters.
Re:How to C in 2016 by Arnavion on Friday January 08, 2016 @10:29AM (#10865502)
>Does not initialise every element to 0 in the way it would seem to.

Yes it does, since atleast C99. As for the others:

a) Removing the initializer will leave the values undefined.

b) Using an initializer of { 1 } will initialize the first element to 1 and the rest to 0.

Re:How to C in 2016 by stevejones on Sunday January 10, 2016 @11:27PM (#10878805)
"the way it would seem to"

{} initialises all elements to 0.

{0} initialises the first element to 0 and the rest to 0.

The latter form just introduces confusion.