Passing 2dimensional array to function

Cane somebody inform me how to pass a 2 dimensional array as a pointer to a function.

Best Regards,
Vic
Read this article, it answers your question and also covers some caveats of 2d arrays: http://www.cplusplus.com/forum/articles/17108/
You can pass a pointer to pointer and the two dimensions, use templates or directly the array
- for the last option see the ending lines of http://www.cplusplus.com/doc/tutorial/arrays/ -
Topic archived. No new replies allowed.