I have a 2-dimensional array that can have a variable number of rows and columns. Depending on user input it could be 6x6 (36 elements), 6x12 (72 elements), 16x16 (256 elements), etc.
Can someone provide EFFICIENT code for accessing all the elements in row sequence - that is, all the elements in Row 1, then all the elements in Row 2, etc.? Thanks.
Can someone provide EFFICIENT code for accessing all the elements in row sequence - that is, all the elements in Row 1, then all the elements in Row 2, etc.? Thanks.