What is the perfect answer of this question ?
Direct: He said to me "what is your name"?
Indirect: He asked me what my name is.
This indirect speech is correct or wrong. Please help me providing the answer.
There are a number of changes or transpositions you must make to turn direct discourse (a direct quote) into indirect discourse (a report of a quote). I'll use the the following example, in which you're waiting to hear a lecture in an auditorium on March 1st.
Direct: A man asks
"Can1 you2 tell me2 who is2 speaking now3 at this4 lecture here4 today3?"
At home, the next day, March 2nd, you want to report the question:
Indirect: A man asked whether
I2 could1 tell him2 who was1 speaking then3 at that4 lecture there4 yesterday3.
Let's look at your example:
Direct: He said to me "what is your name?"
Indirect: He asked me what my name is.
The sentence structure changes from interrogative (is ... name?) to declarative (name is). And the person changes from second (your) for the person addressed to first (my). But what about the present tense is? Shouldn't it be transposed to the past:
Indirect: He asked me what my name was.
That would be acceptable but not mandatory because the present tense may be used to describe events that obtained in the past and don't change. The canonical example is
The earth revolves around the sun.
This is called the stative present. Since the stative present refers to past time (unchanging) events, it's not necessary to do the transposition.