This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Is there a short-cup initialization?


On Feb  9, 2000, "Albert E. Whale" <aewhale@access.hky.com> wrote:

> int tcnt[8] = 0;

> Is there a simple way to define this 8 part array and set all of the
> values to 0?

If this is in the global scope, just omit the initializer, and it will
be default-initialized to 0.

-- 
Alexandre Oliva http://www.ic.unicamp.br/~oliva/ IC-Unicamp, Bra[sz]il
aoliva@{redhat, cygnus}.com        Cygnus Solutions, a Red Hat company
aoliva@{acm, computer}.org      Free Software Developer and Evangelist
oliva@{lsd.ic.unicamp.br, {gnu, kaffe, samba}.org, guarana.{org, com}}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]