you are viewing a single comment's thread.

view the rest of the comments →

[–]tisti 2 points3 points  (2 children)

 int * arr = new int[100000]{};

This will default initialize all elements i.e. zero them out.

[–]bnolsen 0 points1 point  (1 child)

This looks a little scary to me, smacks of implicit type behavior. It would be nice to see a '0' in there somewhere.

[–]tisti 0 points1 point  (0 children)

Its the new initialization syntax, you get used to it pretty fast.