What is a synonym?

A.
a word that is spelled the same as another word

B.
a word that means the same as another word

C.
a word that means the opposite of another word

D.
a word that is longer than other words

If correct I will brainlist