3 ms·
> In C/C++, this doesn’t happen. When you allocate memory via `malloc()`, you get whatever was previously there. What would break if the compiler zero'd it fir
by petesergeant 10mo ago
> In C/C++, this doesn’t happen. When you allocate memory via `malloc()`, you get whatever was previously there.
What would break if the compiler zero'd it first? Do programs rely on malloc() giving them the data that was there before?