The question is pretty much in the title. Let's say in state X, there are 3 candidates: A, B, and C. A wins 49% of the popular vote, B wins 49% of the popular vote, and C wins 2% of the popular vote. Clearly, no one has won a majority.
Who gets the electoral college votes in this case? Does it change if there is a clear plurality, but not majority, winner (ie, A wins 40%, B wins 30%, C wins 30%)?
I would imagine this varies state by state (and DC), but can't seem to find anything.