What is the function of the noun clause in this sentence?
Give whoever enters the auditorium a pamphlet.
A. subject
B. direct object
C. appositive
D. indirect object