No, you are wrong.
C++ doesn't initialize any of your values. They are either random values residing in the chunk of memory where the variable is created or the compiler preinitializes the variables with some known value (often called a "canary") in debug mode. Seeing such value (it's usually multibyte) should make you aware it is related to an uninitialized area of memory.And I final stupid question, why C++ initialized some vars to max values (in example a int to 65535) ????






Reply With Quote
Bookmarks