The old woman complained that the boy made no answer when ___ wh

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