Uninitialised variable
Jun. 6th, 2016 12:57 pmIn C and C++, you should avoid using an uninitialised variable for several reasons, not least of which, it's undefined behaviour (?) But in practice, what are the relative likelihoods of the (I think?) permitted outcomes:
(a) it being treated as some unknown value
(b) the following code being deleted by the compiler
(c) something even weirder happening?
(a) it being treated as some unknown value
(b) the following code being deleted by the compiler
(c) something even weirder happening?