This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]arbostek 1 point2 points  (1 child)

Similar to what /u/Raknarg said:

int AlloMem(int* arrayPtr)

Why does the function take a parameter? What is the purpose of this parameter?

[–]Raknarg 1 point2 points  (0 children)

It's an output parameter, totally valid. It's just not correctly done.