I am confused about the evaluation time of sizeof
operator.
When does the sizeof operator get evaluated?
Does its evaluation time (compile-time or runtime) depend on the language (C? C++?)?
Can we use sizeof
in case of objects created at runtime in C++?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…