program to use casting operator in c language
#include<stdio.h>
int main()
{
int x=5,y=2;
float p,q;
p=x/y;
printf("p=%.2f\n",p);
q=(float)x/y;
printf("q=%f\n",q);
return 0;
}
output
p=2.00
q=2.500000