The correct option is D It sustains all the food chains in an ecosystem
Photosynthesis is the source of energy and food for all organisms directly and indirectly. Herbivores depend directly on plants whereas carnivores depend on herbivores which feed on plants. So, it sustains all the food chains in an ecosystem.
During the process of photosynthesis, oxygen is released into the environment, which is utilised by all living organisms. Carbon dioxide is released during respiration and not photosynthesis.