I did some searching on this topic but couldn't find anything definitive.
Are basic types automatically initialized to 0 in C++ when allocated via new
? For example, are all values of nums guaranteed to be 0 in the code below? int *nums = new int[10];