单项选择题

It was (him) who did all the work (on) the invention, but somebody (else) got (all the credit).

A. him
B. on
C. else
D. all the credit