I learned from C Primer Plus that if you want to protect an array from being accidentally modified by a function, you should add const modifier before
const
You can type cast the array while calling the function. It will not automatically convert non-const into const. You can use this.
Sum2D( (const int (*)[])array, ROWS );