Notes for reading C++ Primer 4/e.
In dynamic array, it could only initial w/ default value, not like static array, could initial as different values.
int *pia = new int[10](); // 10 ints w/ default value 0
No comments:
Post a Comment