Quote:
Originally Posted by kel
It depends on the situation, but you can have arrays of pointers to objects and leave the last position as null so it works like a c-string. You can also encapsulate the array in a struct with a size element. If the array points to structs your defining then you can work in some way to have one of those structs be an end marker of the array.
Generally you should just use a data structure that does this for you and not worry about how large or small it is.
|
That's another good idea. Thanks kel.