Array of memory continuously, whether a few dimension, then see how LZ you visit: line & amp; The column,
CodePudding user response:
Defines a two dimensional array Each address output
CodePudding user response:
There is a difference in simple terms, memory, two-dimensional one dimensional array can also you use to access
CodePudding user response:
This article speak perfectly: Main page or memory exchange will affect the efficiency of access http://blog.sina.com.cn/s/blog_446b43c10100d6e6.html
CodePudding user response:
Don't regardless of paging (STM as) any data into squares, placement, is continuous, you can even directly as is a fact that there is a one dimensional array, the so-called 2 d is even higher, this is only the difference between array index method, a two dimensional array, 4 * 5 just for 20 consecutive address in memory, and a 1 * 20 one-dimensional array is not any difference, you can use the pointer access to test can fully understand,