Mail Archives: djgpp/1997/02/06/10:28:12
From: demandrd AT compusmart DOT ab DOT ca (Demandred)
Date: Thu, 06 Feb 1997 00:47:46 GMT
Probably a silly question, but...
If I declare an array of objects of type Foo
Foo FooArray[5];
And pass a pointer to a Foo into a function (or class constructor)
Bar(Foo *array) {...
Can I access elements in the array in the function, like so?
...array[3]...}
Yup, exactly.
--
Art S. Kagel, kagel AT quasar DOT bloomberg DOT com
A proverb is no proverb to you 'till life has illustrated it. -- John Keats
- Raw text -