The old woman complained that the boy made no answer when _____

The old woman complained that the boy made no answer when _____ where he lived.( )

A.asking

B.to ask

C.asked

D.having asked

正确答案是C