Re: problem passing pointer array



On Jun 30, 9:51 pm, vipps...@xxxxxxxxx wrote:

Sorry, I just realized that.
The problem in your original code is in this line:> (*b)[*size_ptr++]= &a[i];

that increments 'size_ptr' as a pointer, not the value it points to.
Change it to (*b)[(*size_ptr)++] = &a[i];

Thanks, that solved it. I realize it was a stupid mistake
.