3 ms·
The C specification doesn't say anything about what a compiler may or may not do during compilation. It only specifies how the compiled program should behave.
by Denvercoder9 4y ago
The C specification doesn't say anything about what a compiler may or may not do during compilation. It only specifies how the compiled program should behave.
So, yes, the C specification allows a standard-conforming compiler to erase your disk during compilation. It even allows it to do that if your code doesn't contain UB.