+ 4

Dimensioning an array

For a string array of 2 elements should the dimension at the design time be - Dimensionless / Two / More than two to limit the use of memory

19th Nov 2019, 11:06 AM
Sanjay Kamath
Sanjay Kamath - avatar
1 Respuesta
+ 2
Now see why would you keep the size more than 2 if you have only 2 elements to occupy the array. Keeping the size 2 or giving no size and initializing the array with only 2 elements are both the same thing and will occupy equal memory space.
19th Nov 2019, 11:25 AM
Avinesh
Avinesh - avatar