Never say sizeof(sometype)
when you can say sizeof(a_variable)
. The latter works even if the type of a_variable
changes, and it is much more obvious what the size is supposed to represent.
October 19, 2009
sizeof() Style
No Comments »
No comments yet.
RSS feed for comments on this post.