[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: several buglets in CVS m4
From: |
Ralf Wildenhues |
Subject: |
Re: several buglets in CVS m4 |
Date: |
Tue, 20 Jun 2006 06:25:38 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Hello Eric,
Eric Blake writes:
> Ralf Wildenhues writes:
>
> > > - int number[3];
> > > + int number[3] = {0};
> >
> > this which won't initialize number[2].
>
> Yes it will. The C standard requires that all unspecified array members be 0-
> initialized if at least the first array member is explicitly initialized:
My bad. Learnt something new, thanks!
Cheers,
Ralf