News

Pros: you can index arr just like any 2-d array. Cons: memory is not allocated contiguously, which for what you're doing may be a problem. Option 2 - allocate the memory as a 1-d array, compute index: ...