RE: C programmer?? 06-05-2014, 11:59 PM
#5
The solution by @alok9shm is of course correct, but I would add some info just for the sake of correctness.
Please note that, in C, the concept of matrix is vacous since the language does not provide such "type". Programmers can build something representing a matrix in different ways; the most common ones are:
See Wikipedia - Vectorization.
Please note that, in C, the concept of matrix is vacous since the language does not provide such "type". Programmers can build something representing a matrix in different ways; the most common ones are:
- array of arrays (which is the solution you were already given)
- vectorized matrix
- sparse matrix
See Wikipedia - Vectorization.


![[+]](https://sinister.li/images/modern/collapse_collapsed.png)