Is a two dimensional array passed as a value or reference argument to a function ?

Two dimensional arrays are passed as reference argument. If a two dimensional array is to be passed to a function, the parameter declaration in the function must include the number of columns. The number of rows is irrelevant since what is passed is a pointer to an array to rows.

Post a Comment

0 Comments