Which of these two dimensional array are advantageous to use and why?

后端 未结 5 1927
故里飘歌
故里飘歌 2021-01-26 18:54

In a facebook group, I saw a question like :

If a row dominated two dimensional array in the following which one is advantage and why?

         


        
5条回答
  •  不知归路
    2021-01-26 19:27

    According to me The Correct One is 'A' :Because when we use array of 2-D it is easy for assessment Of element Row by Row to cache ,than Column by Column, Since Cache is used for fast Assessment ,if more hit than it behaves fast so first one is Correct, Thanx Have a nice day.

提交回复
热议问题