A
acab
Is it possible to allocate dinamically memory for a bidimensional array?
Is it possible to allocate dinamically memory for a bidimensional array?
acab said:Is it possible to allocate dinamically memory for a bidimensional array?
Is it possible to allocate dinamically memory for a bidimensional array?
Yes.
Oh, you wanted to know how?
You can either allocate a single array of m*n values and calculate
the index into that array from the row and column index, or allocate m
arrays of n values plus an array of m pointers and index using the row
and column indices separately.
Richard said:acab said:
In your dutifully careful perusal of the FAQ, you unaccountably appear to
have overlooked the following:
<http://c-faq.com/aryptr/dynmuldimary.html>
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.