Modifying an array in void function

AWOL:
Please, stop calling it a "void function".
It's just a function that happens to not return anything.

If I call a void function that change an array declared elsewhere with a pointer, the array resets when the function ends.

You can't declare an array with a pointer; you have to declare a pointer and point it to some memory.

You question still isn't clear (to me) - can you post some code that displays the sort of thing you think you're seeing?

the array is declared elsewhere and I use a pointer to modify it in the function.