home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH07 / A07142.TXT < prev    next >
Encoding:
Text File  |  1993-10-21  |  504 b   |  9 lines

  1. The new and delete operators give greater functionality than the
  2. standard library functions.  In addition, the syntax for using 
  3. these operators is more natural and more elegant.  These two 
  4. lines of code are C and C++ statements to allocate memory for 
  5. an array of n integers.  The return value of the new operator 
  6. is a pointer of the correct type.  The return value of the 
  7. function malloc() must be recast.  The standard functions 
  8. include no provision for initializing the memory allocated.
  9.