Skip to main content

example of typecasting in c

/*Type Casting in C
Typecasting allows us to convert one data type into other. */
//simple example to cast int value into the float.

#include<stdio.h>  
int main(){  
float f= (float)9/4;    
printf("f : %f\n"f );    
return 0;  
}     

Comments