int y ; y = 7000000000*1.0;
这不会在 cpp 中给出错误
尽管
int y ; y = 7000000000;
这会导致整数溢出
谁能解释一下这两种情况。
c++ floating-point integer integer-overflow multiplication
c++ ×1
floating-point ×1
integer ×1
integer-overflow ×1
multiplication ×1