Afficher un message
Vieux 29/10/2007, 06h54   #8
$)CHarald van D)&k
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Getting sizeof an anonymous struct declared inside a union

On Mon, 29 Oct 2007 01:02:24 +0000, David Thompson wrote:
> On Wed, 17 Oct 2007 16:36:44 +0000 (UTC), $)CHarald van D)&k
> <truedfx@gmail.com> wrote:
>> All object and incomplete types can be initialised to {0}, whether
>> they're arrays, structures, unions, or scalars.
>>

> Object types yes, and array of unknown size (but not VLA); but not the
> other incomplete types: tag-only struct/union, and void.


You can't define objects of undefined struct/union types or of void type
anyway, so whether the initialiser would work if you could doesn't really
matter, but VLAs are a definite exception. Thanks, I'll try to remember
that.
  Réponse avec citation
 
Page generated in 0,05353 seconds with 9 queries