Questions & Answers about Öğretmene günaydın dedim.
Because öğretmene has the dative case ending -e, which often means to or toward.
- öğretmen = teacher
- öğretmene = to the teacher
With demek in this kind of sentence, the person you say something to is usually marked with the dative case.
Here, -e marks the recipient of what is being said.
So in:
- Öğretmene günaydın dedim
the structure is basically:
- to the teacher
- good morning
- I said
- good morning
This is very common in Turkish. Many verbs use case endings instead of separate words like to.