When the President leaves a clan they are able to choose a replacement clan President.
If the President leaves the clan without first demoting themselves, the Presidency will be passed on to the Captain with the highest clan points. 

If the president is away for 21 days they will be automatically demoted and the Captain with the highest clan points will be promoted in their place.