How to get an array size
Posted
by John Doe
on Stack Overflow
See other posts from Stack Overflow
or by John Doe
Published on 2010-05-27T04:27:08Z
Indexed on
2010/05/27
4:31 UTC
Read the original article
Hit count: 152
I'd like to know how to get an array rows & columns size. For instance it would be something like this:
int matrix[][] = { { 2, 3 , 4}, { 1, 5, 3 } }
The size of this one would be 2 x 3. How can I calculate this without including other libraries but stdio or stdlib?
© Stack Overflow or respective owner