A89: Re: TI-GCC global arrays question


[Prev][Next][Index][Thread]

A89: Re: TI-GCC global arrays question




> Okay, global variables have to be initialized. What about global arrays?

I think you write something like

  int array[15] = {0};

If that doesn't work you can always write

  int array[15] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};

 / Niklas Brunlid
Check out Prosit for the TI-89 / TI-92+ at http://prosit.ticalc.org
Random PQF Quote follows:

There was a new library in the Civic Centre. It was so new it didn't even
have librarians. It had Assistant Information Officers.
        -- (Terry Pratchett, Johnny and the Dead)





References: