3 ms·
Parallel arrays typically don't store non-identically typed things one after the other. Unless I am mistaken, of course. I think of it this way. Say you have
by taeric 10y ago
Parallel arrays typically don't store non-identically typed things one after the other. Unless I am mistaken, of course.
I think of it this way. Say you have two pieces of related data A and B. If you did this with nested arrays, say Foo{A, B}, than you would have an array that was A_1, B_1, A_2, B_2 in memory. With parallel arrays, you would have A_1, A_2 in one array, and B_1, B_2 in another.
So... is that not accurate?
- kragen 10y agoRight. I tried to draw this in the diagrams.