Computer Science Canada

Arrays question

Author:  masternav [ Mon May 09, 2005 5:37 pm ]
Post subject:  Arrays question

When can you say arrays are stored?

Author:  MysticVegeta [ Mon May 09, 2005 5:54 pm ]
Post subject: 

If the variables inside in array are not empty.
for example
code:
var num : array 1..5 of int

This is currently an empty array whereas this ->
code:
var num : array 1..5 of int
for s : 1..5
num(s):= s
end for

This is full.
I think that by stored you mean full

Author:  masternav [ Mon May 09, 2005 7:10 pm ]
Post subject:  thx for tat!

I got a question for test and I got it wrong and I cant find it anywhere over the internet so It is a logical question

Author:  MysticVegeta [ Tue May 10, 2005 6:49 am ]
Post subject: 

What did you put as the solution?

Author:  AsianSensation [ Tue May 10, 2005 7:47 pm ]
Post subject:  Re: Arrays question

masternav wrote:
When can you say arrays are stored?


Was that the questions? Because the answer would be "Whenever you want, as soon as you code it."

Not clear on your question, rephrase it please?


: