Which of the following statements best defines a nonsingular matrix?
A) A matrix with all elements equal to zero
B) A matrix that has a determinant of zero
C) A matrix that has an inverse, meaning its determinant is not zero
D) A matrix that can be transformed into a diagonal matrix through elementary row operations