When an emergency interim successor lawfully exercises the powers and performs the duties of any public office, he shall receive the compensation and allowances provided by law for the incumbent.