Let a function f:(0,[infinity])→[0,[infinity]) be defined by f(x)=∣1−1/ x ∣. Then f is
A) injective only
B) not injective but it is surjective
C) both injective nor surjective
D) injective only