User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 391,644 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,770 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C advertiser:

two dimensional array

Join Date: Oct 2007
Posts: 3
Reputation: jotsaroop is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jotsaroop jotsaroop is offline Offline
Newbie Poster

Re: two dimensional array

  #3  
Oct 3rd, 2007
Originally Posted by muhammad amir View Post
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
Reply With Quote  
All times are GMT -4. The time now is 1:09 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC