Posts: 2,286
Threads: 18
Joined: Jun 2010
Quote:
Originally Posted by Y_Less
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.