30.09.2011, 17:41
array dimensions must always have the same size
if you dont declare a size the compiler gets it, its always the size of the biggest row
because of that you can only get the size of the dimensions with sizeof
if you dont declare a size the compiler gets it, its always the size of the biggest row
because of that you can only get the size of the dimensions with sizeof
pawn Code:
const stock
Array[][] = {
{1, 2, 3, 4, 5},
{1, 2, 3},
{6, 9},
{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
},
SizeD1 = sizeof Array,
SizeD2 = sizeof Array[];