Thursday, December 17, 2020

Type conversion, Precedence & Associativity of Operators:

 C provides the facility of mixing different types of variable and constant in an expression.


Implicit Type Conversion:





Type Conversion:



Explicit Type Conversion:

Syntax:   (Data type)expression

e.g  z=float(x/y)





Precedence & Associativity of Operators:


 Let a=8, b=4, c=2, d=1, e=5, f=20





No comments:

Post a Comment