TYPECASTING IN C
Typecasting is used for converting one data
types into other.
#include <stdio.h>
Typecast syntax
(type) value;
int main(){
int a=3;
float b=54;
printf("The value of a is %d\n",(int) b);
return 0;
}
==>
#include <stdio.h>
int main(){
int a=3;
float b=(float)54/5 ;
printf("The value of a is %f\n",(int) b);
return 0;
}