Miscellaneous Operators
sizeof yields the size, in units the size of a char value, of the operand to its right. Typically, a char value is one byte in size. The operand can be a type-specifier in parentheses, as in sizeof (float), or it can be the name of a particular variable, array, or so on, as in sizeof foo. A sizeof expression is of type size_t.
(type) is the cast operator and converts the following value to the type specified by the enclosed keyword(s). For example, (float) 9 converts the integer 9 to the floating-point number 9.0.
, is the comma operator; it links two expressions into one and guarantees that the left most expression is evaluated first. The value of the whole expression is the value of the right-hand expression. This operator ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access