(type name) expression;
Type name is one of the standard data type. Expression may be a constant variable or an expression this process of conversion is called as casting a value.
float f=12.50;
int i;
i= (int) f;
#include <stdio.h>
main()
{
int sum = 17, count = 5;
double mean;
mean = (double) sum / count;
printf("Value of mean : %f\n", mean );
}
Value of mean: 3.40000