I have a basic question about the intersection theory of algebraic varieties. Let $X$ be a smooth projective variety defined over $\mathbb{C}$ of dimension greater than $2$. Let $D$ be an effective divisor on $X$ and $C$ be an irreducible curve such that $C\subset D$. Then can $D.C=0$? If not is there a counterexample?
Any comments regarding the question are very much appreciated.