On 5 September 2016 at 07:53, Markus Teich <markus.teich_AT_stusta.mhn.de> wrote:
> Anselm R Garbe wrote:
>> Use 'sizeof(type)' with brackets but 'sizeof var' without.
>
> Heyho Anselm,
>
> can you elaborate on the reasoning behind this? The styleguide says "Always use
> () with sizeof".
The styleguide needs to be fixed.
See
http://www.open-std.org/jtc1/sc22/WG14/www/docs/n1256.pdf 6.5.3
for unary operator specification of the C language.
-Anselm
Received on Mon Sep 05 2016 - 08:35:57 CEST