Pointers , Multidimensional arrays and Addresses

前端 未结 6 722
悲&欢浪女
悲&欢浪女 2021-01-05 19:42

Lets say we have : int A [5] [2] [3]; Now, if I do : A[1][0][0] = 4; does that mean :

1.) A [1] and A [1][0] are pointers ?

2.) If A[1] is a pointer, then i

6条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-05 20:12

    Read up on Row Major Order

    Yeah, that didn't help at all, I was thinking C was column major for a second there I think. (forgetting what all the stuff meant)

提交回复
热议问题