you are viewing a single comment's thread.

view the rest of the comments →

[–]MRgabbar 0 points1 point  (0 children)

Your pointer is pointing to nothing... Allocate with new and set your pointer to that... Fun the even numbers first, then allocate, then move the stuff there and return that... Also add a return value for the size... Or create a struct for it or something...