RE: A89: Arrays in C


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

RE: A89: Arrays in C




And if its a character array (a string)

char[]="this is the string"



Indifference

-----Original Message-----
From: owner-assembly-89@lists.ticalc.org
[mailto:owner-assembly-89@lists.ticalc.org]On Behalf Of Robin Kirkman
Sent: Wednesday, October 27, 1999 1:48 PM
To: assembly-89@lists.ticalc.org
Subject: Re: A89: Arrays in C



actually, what you are thinking of is this:

int a[3];

a[0]=9;
a[1]=2;
a[2]=7;

and yes, you can instead do this:

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

--robin

TurboSoft@aol.com wrote:
>
> 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?
> --TurboSoft
>
> Visit the TURBOSOFT HOMEPAGE:  The most current Basic and C programs
created
> by TurboSoft for the 89, and the most 89 web links.
> <A HREF="http://turbosoft.ticalc.org/">http://turbosoft.ticalc.org/</A>




References: