[Tutorial] Beginner's Guide: Single/Two/Multi-dimensional Arrays
#10

Quote:
Originally Posted by Y_Less
View Post
That's not very clear actually, the main point is the difference between:

pawn Code:
printf("%d", sizeof (arr[0]));
pawn Code:
printf("%d", sizeof (eArr[E_EG_STR]));
pawn Code:
func(eArr[E_EG_STR]);
// ...
func(arr[], size = sizeof (arr) printf("%d", size);
One of which won't even compile, the other two will give different results for essentially the same thing.
Well, the function itself won't compile because there's a bracket missing, but anyway, this is really interesting to be honest. There definately should be a tut on it.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)