The correct option is D president
A subject complement is an adjective or a noun that follows the linking verb. Here, "president" follows the verb "elected". Hence, Option D is correct. The rest of the options do not identify the complement, hence incorrect.