Does new initialize memory to 0?

Does new initialize memory to 0?
No, not in cases like this:
1
2
int* i = new int;
int* array = new int[100];


But in this case, SomeClass's constructor is called, and usually a constructor initializes all data.
1
2
class SomeClass;
SomeClass* c = new SomeClass;

Last edited on
OK, thanks.
Topic archived. No new replies allowed.