954,496 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

two dimensional array

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

muhammad amir
Newbie Poster
4 posts since Sep 2006
Reputation Points: 19
Solved Threads: 0
 
Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 
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

jotsaroop
Newbie Poster
3 posts since Oct 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You