home *** CD-ROM | disk | FTP | other *** search
- The new and delete operators give greater functionality than the
- standard library functions. In addition, the syntax for using
- these operators is more natural and more elegant. These two
- lines of code are C and C++ statements to allocate memory for
- an array of n integers. The return value of the new operator
- is a pointer of the correct type. The return value of the
- function malloc() must be recast. The standard functions
- include no provision for initializing the memory allocated.
-