Thread: sizeof question
View Single Post
Old May 4th, 2008, 12:48 AM   #3
Sorrofix
Expert Bug Developer
 
Sorrofix's Avatar
 
Join Date: Apr 2008
Posts: 16
Rep Power: 0 Sorrofix is on a distinguished road
Re: sizeof question

>But beware, this kind of sizeof trick can only be used on
>arrays where the compiler knows the size of it in advance.

And of course, don't use it on a pointer. Even if they do seem a lot like arrays...
Sorrofix is offline   Reply With Quote