there are a special group of plants (plants that live in desert climates) that have modified how and when they take up CO2at night.
In this special group of plants (called CAM plants) the CO2 enters the plant at night and is stored by the plant in special structures. This stored CO2 is then used for photosynthesis during the day but the plant takes in no new CO2 during daytime.
...The CAM plants do this so as to prevent water loss during the hot daytime hours. they have special function for it
As succulent stems can store water for a long period so these plants never deprived of water ....more over they have very low number of stomata which prevent the water lost and usually stomata are present at the lower epidermis thus the direct heat from the sun is averted......in these ways these plants can survive in dry conditions...
the plant will close their stoma to conserve water and they evolved to open their stomata and fix CO2 into organic compounds during the night when it is not so hot & then they close the stomata during the day