Embed Notice
HTML Code
Corresponding Notice
- Embed this notice@humm @lanodan bool is not an integer type, it's a bool type, while they can be implicitly converted to an integer (1 and 0), `true` and `false` are not integer constants anymore, they are `true` and `false`
before C23 you already couldn't assign a `bool` variable to a pointer, but `true` and `false` worked because they were defined as integer constants, but they aren't anymore.
(and this is a good thing, int *foo = false; should not be valid code)