In carbon dioxide (CO₂), the structure of the compound is represented as:
O=C=O
This structure indicates that the carbon atom forms two double bonds with the two oxygen atoms. Carbon, which has 4 valence electrons, and oxygen, which has 6 valence electrons, effectively share electrons to satisfy their bonding requirements and achieve a stable electron configuration.