Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!wuarchive!mit-eddie!uw-beaver!ubc-cs!fornax!miron From: miron@fornax.UUCP (Miron Cuperman) Newsgroups: comp.std.c++ Subject: Order of fields within one section Keywords: fields, sections Message-ID: <1083@fornax.UUCP> Date: 15 Aug 90 19:32:54 GMT Distribution: comp Organization: School of Computing Science, SFU, Burnaby, B.C. Canada Lines: 16 Is the order of fields within a section preserved? For example: class C { private: int size; float a[0]; } Is 'a' guaranteed to be after size so I can do C *C1=malloc(sizeof(C)+n*sizeof(float)); If that is permissible, is it possible to use 'new' to allocate an arbitrarily sized object? -- By me: Miron Cuperman