Who/Whom did you visit?

Which pronoun should I use?

tamguatlayWho/Whom did you visit?
Who did you visit? -- fine, especially in common speech
Whom did you visit? -- technically the correct version of the former in terms of grammar, more likely to be seen in formal writing but gradually falling into disuse elsewhere
Teachers: We supply a list of EFL job vacancies

Who or whom did you visit ? I visited my cousin .what is the correct answer.thanks

Whom did you visit? This is formally correct, but it is seldom said.

Who did you visit? This is normal English.

I visited my cousin. This answer is what ESL text books usually expect, but in real English we almost always avoid repetition and just say My cousin.

What is the correct answer? Thanks <<< Try to avoid these small errors. They make people think that your English is very poor.