C - Type conversion

 Type conversion:

C permits mixing of constants and variables of different types of expression, during evaluation there are strict rules of type conversion. If the operands are of different types, the lower type is automatically converted to the higher type before the operation proceeds. The result is of the higher value.

SYNTAX - Data type variable=(type name) expression;

EXAMPLE - float x;  x=(float)5/2;

Comments

Popular posts from this blog

Computer - Network Topologies

Computer Icons and Their Types

Courses After 12th Science