Other Operators
Operator | Operation | Example | Result |
---|---|---|---|
( ) | Function Call | foo (x) | Passes control to the function with the specified arguments |
sizeof | Sizeof an object or type in bytes |
sizeof x | The number of bytes x occupies in memory |
(type) | Explicit type cast | (short) x | Converts the value of x to the specified type |
?: | Conditional expression | x ? y : z | The value of y if x is true, else the value of z |
, | Sequential evaluation | x, y | Evaluates x then y, else result is value of y |