The CNO cycle produces energy in which of the following?

A. main-sequence stars

B. more massive than about 1.1 solar masses

C. giant stars less massive than the sun

D. giant stars