:: Re: [DNG] Studying C as told. (For …
Page principale
Supprimer ce message
Répondre à ce message
Auteur: KatolaZ
Date:  
À: dng
Sujet: Re: [DNG] Studying C as told. (For help)
On Wed, Jun 22, 2016 at 08:23:08PM +0200, Irrwahn wrote:
> On Wed, 22 Jun 2016 18:37:32 +0100, Katolaz wrote:
> [...]
> > no array can be actually "passed" to function,
> [...]
>
> I'm not trying to argue against anything you wrote in your
> spot-on analysis, but regarding that one claim quoted above
> one could postulate that an exception to that rule exists
> for arrays[1] that are members of structure types, i.e.
> structs or unions.
>
> Wrapping an array as the sole member in a struct can be
> abused to "emulate" passing an array to a function. It is
> to be frowned upon though, as it rarely is justifiable.
>


You are definitely right mate :) That's insane, and weird, and
convoluted, but is possible, and correct :D

HND

KatolaZ

-- 
[ ~.,_  Enzo Nicosia aka KatolaZ - GLUGCT -- Freaknet Medialab  ]  
[     "+.  katolaz [at] freaknet.org --- katolaz [at] yahoo.it  ]
[       @)   http://kalos.mine.nu ---  Devuan GNU + Linux User  ]
[     @@)  http://maths.qmul.ac.uk/~vnicosia --  GPG: 0B5F062F  ] 
[ (@@@)  Twitter: @KatolaZ - skype: katolaz -- github: KatolaZ  ]