Consider an inductor connected to an AC source, $V=V_0\sin\omega t$.
Let the the switch in the circuit be closed at $t=0$. Then by Kirchoff's voltage law, $$ V-L\frac{dI}{dt}=0 $$ where $I$ is the current in the circuit. It follows from this that $$ I=-\frac{V_0}{L\omega }\cos\omega t+c. $$ My question is regarding the value of the constant $c$. Since the current in the circuit should be zero at $t=0$, I assumed it should be equal to $\frac{V_0}{L\omega }$, so the equation for current in the circuit becomes $$ I=\frac{V_0}{L\omega }(1-\cos\omega t). $$ However, it is printed in my textbook that the value of $c$ equals zero, so that $$ I=-\frac{V_0}{L\omega }\cos\omega t. $$ Why is my assumption wrong and how does current flow through the circuit if the initial voltage of the AC source at $t=0$ is zero?