According to Article 65 of the Indian Constitution, if both President and Vice President offices are vacant, the Chief Justice of India (or the senior-most Supreme Court judge available) acts as President until a new President is elected. The Speaker of Lok Sabha and Prime Minister are not in the line of succession, making option C constitutionally correct.