I was reading online for stuff about opengl.(I need help with 3 dimentional arrays). I learned what I needed(i rememberd a thread that helped me(thanks Thantos)) Anyway, I found this on a site, I know this is wrong is there any validity in this statement??The arrays you have learnt so far are called static arrays because they have a fixed number of elements. A dynamic array lets you add elements to an array simply by using them.
To declare a dynamic array you must not put a number in the square brackets of the declaration.
int a[];
Now just use it in the same way as a normal array. You can't however set the value of an element if you haven't first set the value of the one before it.
int a[];
a[0] = 12;
a[1] = 23;
a[2] = 34;