經安全檢測,此網站為安全網站,請放心前往原始網址!

arrays - Does new[] call default constructor in C++? - Stack Overflow

When I use new[] to create an array of my classes: int count = 10; A *arr = new A[ count];. I see that it calls a default constructor of A count times.

www.google.com.tw

網址安全性掃描由 google 提供