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: [cpp] #include <stdio.h> int main( void ) { int a … Continue reading →

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