I have an array being passed to a function (type: int, size: 20) and I would like to know how to make this function directly affect the array and not the copy being made for the function. Someone once told me that by passing an array, you're automatically passing a pointer of its location and thus the array, once edited in a function, remains edited elsewhere. This is not the case (I know from my coding). However, I'm a bit shaky how we used to make arrays dynamic (back when I took computer science) and remember something like some appendage of "&" in parameters? Does this make sense or am I getting mixed up with other things? Anyway, if this is somewhat correct please elaborate on necessary steps to making dynamic arrays, otherwise just tell me flat-out.
Tags: