The pineapple carries out CAM photosynthesis, fixing carbon dioxide at night and storing it as the acid malate.