Type Conversion in 'c' language int int
float char
long int float
double int
Type casting in 'c' language
a=(float)x/y;
The expression(float)causes the variable x to be converted from type int to type float before being used in the division operation.

0 Comments