Are all elements of an array stored in consecutive memory like in C?
Also if they are given storage ahead of time and you declare an array without a type how does it know how much space to give without knowing the type?
Array question
-
- Veteran
- Posts: 109
- Joined: Thu Feb 10, 2005 12:38 pm
Re: Array question
>Are all elements of an array stored in consecutive memory like in C?
Yes, they are
>Also if they are given storage ahead of time and you declare an array without a type how does it know how much space to give without knowing the type?
Arrays in QB always have a type, if you omit it the default type is used (SINGLE).
Yes, they are
>Also if they are given storage ahead of time and you declare an array without a type how does it know how much space to give without knowing the type?
Arrays in QB always have a type, if you omit it the default type is used (SINGLE).
Array question
Thx Antoni, i did finally find the qb help file for the default type, but your 1st answer helps alot.