What is the cost of sizeof?
I would expect:
sizeof is a compile time call. It can only work on things that are known at compile time. Your compiler will figure out the size of the structure and substitute a numeric constant.
sizeof