The correct option is C both (a) and (b)
The importance of ecosystem lies in the flow of energy and cycling of material both. In an ecosystem, there is a unidirectional flow of energy from producers to top consumers. After the death of all the living organisms of the ecosystem, decomposers act on dead remains and break the complex compounds into simpler elements which are liberated in soil or atmosphere. In this way, cycling of materials occurs in ecosystems.