code:
#include<stdio.h> int main() { int a=5,b=2; float r; char ch=5; r=(float)a/b; printf("%f",r); return 0; }
Typecasting follows a hierarchy like this it is upper to lower is increasing and lower to upper is decreasing:
char
int
long
float
double
long double