It can be a compliment from anyone but mostly from the opposite sex. Do you like the flattery? Do you say Thank you? Do you just smile? Do you say nothing?
I've done a my fair share of compliments to guys. Some say Thank you, some not, or some just get caught off guard and don't know what to say.