How is the infinitive phrase used in this sentence?
The fence was installed to keep the children from accidently falling in the pool.
a. noun as subject
b. adjective
c. adverb
d. noun as direct object
The infinitive phrase 'to keep the children from accidentally falling in the pool' is used as C, an adverb, because its meaning is - for the reason to keep them from falling, and if the meaning is 'reason', it must be an adverbial phrase.