Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Is sizeof(char) an integer expression or a function call?
Is sizeof(char) an integer expression or a function call?
Sizeof is an operator, so it is an integer expression, not a function call.

Sizeof is an operator that can be used for any variable name, type name or constant value. When used for variable names (not array names) or constants, it does not need parentheses.

Sizeof has three grammatical forms.

1) is used for data types.

sizeof(type _ name); // sizeof (type);

2) Used for variables

Sizeof (object); //sizeof(object);

Sizeof object; // sizeof object;