C3H4 is the molecular formula representing a hydrocarbon compound consisting of three carbon atoms and four hydrogen atoms. This formula indicates that it belongs to the class of hydrocarbons, specifically alkenes or alkynes, depending on the bonding between the carbon atoms. Understanding C3H4 helps in studying the properties, structures, and reactions of hydrocarbons, which are fundamental to organic chemistry.