Thursday, April 24, 2008

sizeof is an operator, not a function

To calculate the size of an object, we need the type information. This type information is available only at compile time. So no need to do it at run time.

How can it be a function when the operand is a type, not an expression.

No comments:

Post a Comment