This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Is there a short-cup initialization?
- To: aewhale at hky dot com
- Subject: Re: Is there a short-cup initialization?
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 10 Feb 2000 04:08:35 -0200
- Cc: GCC Mailing List <gcc at gcc dot gnu dot org>
- References: <38A1CC25.953F6E60@access.hky.com>
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}}