Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!emory!wa4mei!nanovx!msa3b!kevin From: kevin@msa3b.UUCP (Kevin P. Kleinfelter) Newsgroups: comp.lang.c++ Subject: new/dispose behavior Message-ID: <1619@msa3b.UUCP> Date: 29 Apr 91 13:09:16 GMT Organization: Dun and Bradstreet Software, Inc., Atlanta, GA Lines: 26 I'm reading along in a book about C++, and I see that one can do: char *s; s = new char [40]; ... delete s; The book then goes on to say that one should: int *p; p = new int [40]; ... delete 40 p; These examples seem to suggest to me that one specifies the number of bytes to delete with int pointers but not char pointers. Either I'm confused or the book is! True or False: If one wants to delete all of the 'new-ed' storage one need not specify the quantity to delete, just the pointer to the storage. -- Kevin Kleinfelter @ Dun and Bradstreet Software, Inc (404) 239-2347 ...gatech!nanovx!msa3b!kevin Warning: There seem to be multiple 'msa3b' nodes on Usenet, and it is nanoVX, not nanovAx.