Hi, I am having following doubt regarding "int" flavors (unsigned int, long int, long long int).
When we do some operations(* , /, + , -) between int and its flavors (lets say long int) in 32bit system and 64bit system is the implicit typecast happen for "int"
for example :-
int x ; long long int y = 2000;
x = y ; (Higher is assigned to lower one data truncation may happen) I am expecting compiler to give warning for this But I am not getting any such warning. Is this due to implicit typecast happen for "x" here. I am using gcc with -Wall option. Is the behavior will change for 32bit and 64bit.
Thanks Arpit