The semiconductor device is provided with a switching transistor for performing switching in accordance with a signal on the input line.
upward or downward variation of the threshold voltage of the thin film transistor is effectively prevented similarly to the semiconductor device of the above aspect of the invention.