Plants produce food material through the process of photosynthesis. Carbon dioxide and water are used to produce glucose and oxygen in the presence of chlorophyll and sunlight. In this process, glucose, which is a carbohydrate is produced as the main product and oxygen as a by-product. Carbon dioxide is taken inside the cells and oxygen is released from cells through stomatal openings present in leaves.