Login
From:
Ruminations
(Uncensored)
subscribe
Interesting Note About the sizeof Operator
https://blog.aaronballman.com/2013/06/interesting-note-about-the-sizeof-operator/
links
backlinks
Tagged with:
c c++
sizeof
unexpected behavior
Roast topics
Find topics
Find it!
The expression used in a sizeof operator is an unevaluated expression in C and C++. This can make for some surprising situations if you are unaware of it. For instance: