top | item 44483792

(no title)

gallier2 | 7 months ago

.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.

discuss

order

No comments yet.