cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Passing 2dimensional array to function
Passing 2dimensional array to function
Jan 10, 2010 at 4:04pm UTC
Vic
(6)
Cane somebody inform me how to pass a 2 dimensional array as a pointer to a function.
Best Regards,
Vic
Jan 10, 2010 at 4:13pm UTC
tummychow
(1210)
Read this article, it answers your question and also covers some caveats of 2d arrays:
http://www.cplusplus.com/forum/articles/17108/
Jan 10, 2010 at 7:02pm UTC
Bazzy
(6281)
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.