Example (contour integral of powers)
Let $f(z) = z^n$ for some fixed $n\in \Z$. If $n\geq 0$, $f$, $f$ is entire; if $n<0$, then $f$ is holomorphic on $\C \setminus \set{0}$.
Let $C_R$ be the circle of radius $R>0$ about $0$, positively oriented. Parametrise as $$ \begin{align*} γ(t) = R\,e^{2πit}, \qquad t\in [0,1]. \end{align*} $$ Then the integral of $f$ along $C_R$ is $$ \begin{align*} \int_{γ} f ={}& \int_{0}^{1} f(γ(t)) \, γ'(t) \d t \\ ={}& \int_{0}^{1} R^n e^{2πitn} \cdot R \cdot 2πi e^{2πit} \d t \\ ={}& 2πiR^{n+1} \int_{0}^{1} e^{2πit(n+1)} \d t \\ ={}& 2πiR^{n+1} \left(\int_{0}^{1} \cos 2πit(n+1) \d t + i\int_{0}^{1} \sin 2πit(n+1) \d t\right) \\ ={}& \begin{cases} 0, &n\neq -1, \\ 2πi, &n=-1. \end{cases} \end{align*} $$
This agrees with the fundamental theorem of calculus: for $n\neq -1$, $\frac{1}{n+1} z^{n+1}$ is an antiderivative of $f$, so the contour integral is 0. Meanwhile $z^{-1}$ has no antiderivative defined on $C_R$ (e.g. $\Log$ has a cut).