Why is sizeof considered an operator and not a function?
What property is necessary to qualify as an operator?
Why is sizeof considered an operator and not a function?
What property is necessary to qualify as an operator?
Sizeof(), I think obviously it's both a function and an operator. Why? Because a function holds parentheses for entry at the stage of entry. But mainly also an operator cause operators are action character, therefore sizeof is an action statement that acts on the operand in the parentheses.