C Programming Other Operators

Last modified by Microchip on 2023/11/09 09:06

OperatorOperationExampleResult
( )Function Callfoo ( x )Passes control to the
function with the specified arguments
sizeofSizeof an object or
type in bytes
sizeof xThe number of bytes x
occupies in memory
(type)Explicit type cast(short) xConverts the value of x
to the specified type
?:Conditional expressionx ? y : zThe value of y if x is true,
else the value of z
,Sequential evaluationx, yEvaluates x then y, else
result is value of y