So following:
double t = 244.233;
int a = (int) t;
is not undefined behaviour since 244 can fit inside int
did I get it right?
Otherwise if it was larger value instead of 244 which didn't fit inside int this would be undefined, did I get it right?
I am more interested in how C does this. But is there difference in this case w.r.t to C++?