by bhk · 9y ago · 0 comments
Unfortunately, many languages have gotchas like these, and specifications and tutorials often fail to point them out. For the sake of education they should be shouted loudly. You don't really know a language, and aren't really safe using it, until you understand them.
Also on university they repeated to me exactly the same thing. "Since each variable points to a memory location, you can't be sure of what is inside that memory location, until you initialize the variable".