If f:Z→Z is defined by f(x)= { x/2 if x is even
{ 0 if x is odd then f is


A. onto but not one to one
B. one to one but not onto
C. one to one and onto
D. neither one to one nor onto