How to pass by reference multidimensional array with unknown size in C or C++?
For example, in main function I have:
int main(){ int
John Bode's explanation is very good, but there is a little mistake: it should be
i * cols + j
instead of
i * rows + j