Carbon has atomic number=Z=6
Let's write electronic configuration
[tex]\\ \tt\bull\rightarrowtail 1s^22s^22p^2[/tex]