Why is sizeof considered an operator?

Viewed 25496

Why is sizeof considered an operator and not a function?

What property is necessary to qualify as an operator?

10 Answers

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.

Related