首页 > 解决方案 > 使用指针传递二维数组

问题描述

标签: cpointersmultidimensional-array

解决方案


It is possible to use pointers for 2D arrays. char ** doesn't represent a 2D array - it would be an array of pointers to pointers. This is how you would pass a 2D char array to a function printarray.

void printarray( char (*array)[50], int SIZE )

推荐阅读