I had the problem that uninitialized memory(NaN actually) was used to multiply 0.f then accumulate another value. Finally, I got the NaN. Then I found that
NaN * 0.f = NaN.
in C++. Is this a necessary result that is not related to the compiler?
I had the problem that uninitialized memory(NaN actually) was used to multiply 0.f then accumulate another value. Finally, I got the NaN. Then I found that
NaN * 0.f = NaN.
in C++. Is this a necessary result that is not related to the compiler?