Keith said:
You can, but there's not much reason to do so. Initializing allocated
memory to all-bits-zero is not usually what you want to do. For
example, this does *not* guarantee that pointers or floating-point
variables will be set to NULL or 0.0, respectively.
Or, you may not require initialized memory in the first place, as you are
going to store info into it before using it. (For example, making a copy
of a string.)
--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody |
www.hvcomputer.com | |
| kenbrody/at\spamcop.net |
www.fptech.com | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
Don't e-mail me at: <mailto:
[email protected]>