If king and prince die and the prince had no kids who will become king?

I'm guessing, that if they had a daughter, basically who ever she decides to marry
=)