In the book Schaum's Outlines of Analog and Digital Communications solved problem 1.2, the author calculates the fourier coeffecient $C_0$ for the rectangular pulse train:

where $a$ is assumed to be $(1/4)T$ as such:

Usually, I've seen around the web that we have to integrate over the whole period, which in this case would be $0$ to $T$. Why is this wrong and the author's approach correct?
Firstly, the function is zero on both intervals $[-T/2, -a]$ and $[a, T/2]$;
Also, Integral kernel of Fourier series, the $e^{inω}$, is periodic for each $n∈ \mathbb N$ that means integral can be taken on $[-T/2, T/2]$;
Since $C_0$ is a DC component which means $n$ = 0, whole above make the integration of $C_0$ stand on $[-a, a]$.