The total number of protons and neutrons in the nucleus of the atom is called the atomic mass number. The atomic number, i.e. the proton number of carbon is 6 and the mass number is total number of protons and neutrons in the carbon, i.e. 6 protons + 6 neutrons = 12. Therefore, the atomic number and mass number of carbon are 6 and 12 respectively.