Typecast

// Program for typecasting
#include<stdio.h>
#include<conio.h>
void main()
{
int a=10,b=3;
float c;
c=(float)a/b;
clrscr();
printf("\n Result is %f",c);
}

No comments:

Post a Comment