. , .
, - "" . (a[2] , 2[a]: .. a ( , , )).
Since array syntax is pretty much syntactic sugar, switching to a pointer makes sense. But if you do, then using it new[]will make more sense (because you call your constructors for free), and switching from std::vectormakes even more sense (because you do not need to remember, call delete[]every place where the array goes out of scope due to return , break, end of instruction, exception exceptions, etc.).
source
share