type casting in c double to int code example
Example 1: How to Convert double to int in C
double a = 12.34;
int b = a ;
//b = 12 not 12.34
Example 2: how to cast in c programming
(new_type) name_var;
double a = 12.34;
int b = a ;
//b = 12 not 12.34
(new_type) name_var;