C function declaration
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: can we declare a function in a header file in following way? extern int ap ( char [][] ); can we use char[][] in function? 回答1: For a two dimensional array, you have to supply a size for the last dimension otherwise the compiler doesn't know how to use it. (it's fine to omit the name though.) like this: extern int ap ( char [][ 10 ] ); 回答2: No, you need to specify the last N-1 dimensions for an array. extern int ap ( char [][ DIMENSION ] ); For more information look here 回答3: char[][] is not a valid array type because you cannot