Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
turminal
· 2y ago · 0 comments
> The first 4 are implementation defined rather than undefined.
Third and fourth are only defined in some implementations.
Comments
[–]
ryao
2y ago
That is fair for 4, although would explain why it is the case for 3?
[–]
turminal
OP
2y ago
If char is signed and ' ' * 13 is bigger than CHAR_MAX, you get UB by signed overflow.