Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
gallier2
· 1y ago · 0 comments
.init is not necessarily 0. For int it is, but for float it's NaN. For char it's 255 and for an enum, it's whatever you have decided it is. enum thing { first = -1, second, etc. } This way, a variable of type thing has -1 as init value.
Comments
No comments yet.
Better HN