Is it legal to use memset(,0,) on array of doubles?
Is it legal to zero array of doubles (using memset(,0,)) or struct containing doubles ? The question implies two different things: (1) From the point of view of C standard, is this UB of not ? (on a fixed platform, how can this UB ... it just depends of floating representation that's all ...) (2) From practical point of view: is it ok on intel platform ? (no matter what standard is saying). The C99 standard Annex F says: This annex specifies C language support for the IEC 60559 floating-point standard. The IEC 60559 floating-point standard is specifically Binary floating-point arithmetic for