Help With array

I need help with some guidance, there's this equation for calculating 2D array matrix[I][J], and it goes something like this:

A + (I*(#colums) + J) * Size of data type

I forgot what this is used for, if it's used for calculating memory size of a given array. Can someone point me in the right direction? Thanks

Please explain your question little bit more, What is A? I? J ? No body can answer such question.
ya, i know i'm being very vague.
A is suppose to be the matrix
I and J are the locations that the variable is in.

For example, you have an int array[3][3] going from 1, 2, 3.... to 9, and the address starts at 1000.
You want to find the address location of array[1][1], which is 5,I think this equation is used to find the memory address of the data type, int in this example.
I don't quite recall what it's used for, all I remember is this equation. From what I can remember i think it's used to find the starting address of a defined array location, but i could be wrong. All i remember is that this equation is to be used related to 2D arrays.

I hope this helps
Topic archived. No new replies allowed.