To insert an element at the \( p \)-th position in a one-dimensional array, all the elements after the \( p \)-th position must be shifted one position to the right.
Therefore, the number of elements that need to be moved is \( n - p \), where \( n \) is the total number of elements in the array.
Thus, the correct answer is \( n - p \).