May 26, 2023
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
by : Ajaj Khan
Quick Summary:
इस program मै x=5 , y=2 का भागफल नीकल रहा है