2位哥哥..我再次恳求停止这种无休止的争吵,这里是编程论坛啊,并不是什么"灌水区"!
希望此次时间不要分散大家的精力,大家还是应该把主要的时间和精力用于学习,共同进步,我也很高兴
认识大家,只是希望大家能通过关于学术上共同的语言来增进交流....而不是.....
Over.....
Pointers to Multidimensional Arrays
How would you declare a pointer variable pz that can point to a two-dimensional array such as zippo? Such a pointer could be used, for example, in writing a function to deal with zippo-like arrays. Will the type pointer-to-int suffice? No. That type is compatible with zippo[0], which points to a single int. But zippo is the address of its first element, which is an array of two ints. Hence, pz must point to an array of two ints, not to a single int. Here is what you can do:
int (* pz)[2]; // pz points to an array of 2 ints
我是新手,看了前面的一个回帖,是我有些困惑,,,究竟那里的**p合法吗?
在编程时,是 可用/但不鼓励 还是 经常这样遍历呢???