Tag Archives: unexpected behavior

Interesting Note About the sizeof Operator

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: This code will print 12 instead of 13 because the … Continue reading

Posted in C/C++ | Tagged , | 7 Comments