Thursday, 8 August 2013

Does sizeof(int) (or any sizeof any simple data type) cost anything at runtime?

Does sizeof(int) (or any sizeof any simple data type) cost anything at
runtime?

I would have thought that all the necessary info would be known at compile
time and the compiler could insert a constant value.
Does this indeed happen?

No comments:

Post a Comment