3 ms·
I find this hard to believe. Even initialized variables are undefined behavior, I’ve yet to meet a c programmer that hasn’t been bitten by this.
by pacaro 9y ago
I find this hard to believe. Even initialized variables are undefined behavior, I’ve yet to meet a c programmer that hasn’t been bitten by this.
- reza_n 9y agoPlease explain how that is UB?
- pacaro 9y agoUgh. Sorry autocorrect, should read “uninitialized variables”
- reza_n 9y agoIt is well understood that all variables need to be initialized. Most compilers consider uninitialized variables an error. So I would say someone running into this and possibly other UB scenarios is just a case of writing bad code.