Doubt from functions

The number of real valued continuous function f (with domain R) such that if x is rational then f(x) is irrational and if x is irrational then f(x) is rational, is:
(A) Zero
(B) Two
(C) Four
(D) Infinite

1 Like

Is the answer zero ?