Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • 1
    Why not try it? Commented Jul 5, 2017 at 21:48
  • How do you know it allocates 32-bits? That looks like an 8-bit bool followed by three other things that are zero, like B being false. Commented Jul 5, 2017 at 21:48
  • Is is C standard and implementation dependant Commented Jul 5, 2017 at 21:58
  • 2
    C doesn't define a type BOOL. It defines _Bool, and stdbool.h defines bool. What does your BOOL typedef look like? Commented Jul 5, 2017 at 22:00
  • Although you are allowed (at the moment) to write int long unsigned const long static u = 23;, you shouldn't do that. Interestingly, GCC 7.1.0 when run with -Werror -Wold-style-declaration doesn't allow it: error: ‘static’ is not at beginning of declaration [-Werror=old-style-declaration]. (And -Wextra includes -Wold-style-declaration (at least in GCC 7.1.0), so you don't have to add it separately.) Commented Jul 5, 2017 at 22:21