Topics
The sizeof
operator is primarily used to get the size of the variable. The operand is evaluated at compile time. sizeof(a++)
is interesting because: the increment operation a++
is not actually performed and sizeof(int)
returns 4 on most systems.