Breakdown of sensei ni nihongo de shitsumonshitara, sono ba de wakariyasui setsumei o shite kuremashita.
Questions & Answers about sensei ni nihongo de shitsumonshitara, sono ba de wakariyasui setsumei o shite kuremashita.
先生に marks the person the question was directed to.
In this sentence:
- 先生に質問する = to ask the teacher a question
This is different from:
- 先生が = the teacher is the subject
- 先生を = would make the teacher the direct object, which does not fit 質問する here
So に shows the target/recipient of the asking.
