What is the function of the participle "wailing" in the sentence below?

The wailing toddler was having a temper tantrum.

(1 point)
Responses

A. "wailing" is not a participle as used in this sentence

B. "wailing" functions as an adjective

C. "wailing" functions as a noun

D. "wailing" functions as a pronoun

B. "wailing" functions as an adjective