What are primitive (member) types initialized as in C++?
My integral members seem consistently to initialize to zero, float/double members often initialize the same, but can occasionally end-up with garbage, causing many headaches.
Some sources mention primitives are initialized to 0, yet elsewhere I've heard that the entire class is first memset to 0 (definitely not the same thing...)
So can anyone tell me the definitive list of initialization values for each primitive type?
Thanks in advance.