When is pointer to array useful?

前端 未结 9 1674
天涯浪人
天涯浪人 2020-12-30 09:18

I can declare:

int (*ap)[N];

So ap is pointer to int array of size N. Why is this ever useful? If I pass it to function, what usefu

9条回答
  •  囚心锁ツ
    2020-12-30 09:35

    I think the conclusion from this whole discussion is never. Nobody here really demonstrated a use for this construct where something else wouldn't work in a more comprehensible way.

提交回复
热议问题