hi,
in my last lecture i had faced a quiz, it was related to two dimensional array.i was unable to solve it.the question is
"you are required to find a generic formula of the two dimensional array that how memory is being allocated for two dimensional array ?how compiler know that it has to skip certain column or how new array is start ?we also that memory is linear
please consign me website related to two dimensional array
thank you

Here is one

hi,
in my last lecture i had faced a quiz, it was related to two dimensional array.i was unable to solve it.the question is
"you are required to find a generic formula of the two dimensional array that how memory is being allocated for two dimensional array ?how compiler know that it has to skip certain column or how new array is start ?we also that memory is linear
please consign me website related to two dimensional array
thank you

hi!!!! nice to know ur question
the basic funda behind that is two demensional array is stored in memory rowwise ie.
eg 1 2
3 4
this metrix will store in memory as location 2000 1
2001 2
2002 3
2003 4
so there is no question of skipping any thing


if not understood arguments will be appreciated
thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.