Loading....
Coupon Accepted Successfully!

 

Misc Operators - sizeof & ternary

There are few other important operators including sizeof and ? : supported by C Language.

 

Operator

Description

Example

sizeof()

Returns the size of an variable.

sizeof(A), where a is interger, will return 4.

&

Returns the address of an variable.

&a; will give actaul address of the variable.

*

Pointer to a variable.

*a; will pointer to a variable.

? :

Conditional Expression

If Condition is true ? Then value X : Otherwise value Y





Test Your Skills Now!
Take a Quiz now
Reviewer Name