A92: Re: Arrays in C


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

A92: Re: Arrays in C




> instead of doing this:
> int a[0] = 9
> int a[1] = 2
> int a[2] = 7
>
> can l do something like this:
> a[] = {9,2,7}
>
> or something similar, where vals. don't have to be inputed one at a time into
> an array?

int a[3] = {9,2,7};

or

int a[3];
...
a = {9,2,7};

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

The figures the telescope was producing were all that was left of an
exploding star twenty million years ago. A billion small rubbery things on
two planets who had been getting on with life in a quiet sort of way had
been totally destroyed, but they were certainly helping Adrian get his
Ph.D. and, who knows, they might have thought it all worthwhile if anyone
had asked them.
        -- (Terry Pratchett, Johnny and the Dead)




References: