What is the function in a cell of the carbon compounds nucleic acids?

provides a cell membrane that regulates the interaction between the cell and the environment

stores and transmits hereditary information

stores energy for the cell and sometimes provides structural support

regulates cell processes, transports things into and out of the cell, and fights disease