Article View: comp.std.c++
Article #3652stack variables and new constructor
From: Jon.Cassorla
Date: Wed, 13 Mar 1996 15:04
Date: Wed, 13 Mar 1996 15:04
21 lines
1646 bytes
1646 bytes
I'm fairly new to the world of C++ so I didn't know if these questions would be better asked in this group or in comp.lang.c++. Anyway, here goes. 1) For a variable that is declared locally to a function of a structure type, is the standard new constructor executed to allocated the memory for the data structure? 2) When using "new" to allocate data space for a variable of a structure type (ie no constructor defined), is the resulting memory space zero'd out as a standard? -- Jon Cassorla email: Jon.Cassorla@ColumbiaSC.ATTGIS.COM AT&T GIS Server Systems Software 3325 Platt Springs Road phone: (803) 939-2070, VP 632-2070 Columbia, SC 29170 FAX: (803) 939-7317 --- [ comp.std.c++ is moderated. To submit articles: try just posting with ] [ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ] [ FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html ] [ Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ] [ Comments? mailto:std-c++-request@ncar.ucar.edu ]
Technical Details
Message-ID:
<Do7nuy.HsF@ncrcae.ColumbiaSC.ATTGIS.COM>Path:
arc1-ca.pugleaf.net!in2.uu.net!bounce-backShow Full Headers
Complete Article Headers
From: "Jon.Cassorla" <cassorla@casey.columbiasc.ncr.com> Message-ID: <Do7nuy.HsF@ncrcae.ColumbiaSC.ATTGIS.COM> X-Original-Date: Wed, 13 Mar 1996 14:49:46 GMT Path: arc1-ca.pugleaf.net!in2.uu.net!bounce-back Date: 13 Mar 96 15:04:23 GMT Approved: fjh@cs.mu.oz.au Newsgroups: comp.std.c++ Subject: stack variables and new constructor Organization: AT&T Global Information Solutions, Columbia SC X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUBMUbkBuEDnX0m9pzZAQHagAF+Oxfl5rsa8gZpF41grhr5lVyRd3+jbSnj ezFxYLOy6eqkjpa4KiNgMf7OFzqMeSY/ =/eq6