In an attempt to compute $\sum_{k=0}^{n}{(-1)^k {n\choose k}}$ the author put $x=-1$ in the formula $(x+1)^n=\sum_{k=0}^{n}{ {n\choose k}x^k }$
Then he wrote that we have $$0^n = \begin{cases} 0 &\mbox{if } n \in \mathbb N^* \\ 1 & \mbox{if } n =0 \end{cases} $$
How is that done and is the function $0^n$ defined at all? I mean my understanding is that $0^n=e^{n\log0}$ but $\log 0$ is not defined at all. Thank you for your help.