Like poles repel and unlike poles attract each other.
Two like magnetic poles :
(a) repel each other
(b) attract each other
(c) first attract each other, then repel
(d) neither attract nor repel.