Answer: One mole of any element/compound has a mass equal to its gram atomic/molecular mass.
We know that Carbon has an atomic mass equal to 12g, I. E. One mole of carbon atoms weighs 12g.
We know that one mole of any substance contains 6.0225X10^23 particles(atoms, molecules, ions, etc.).
Thus 12g of Carbon contains 6.0225X10^23 atoms of Carbon. Therefore 1g Carbon will contain (6.0225X10^23)/12 atoms of Carbon.
Answer= 5.01875 X 10^22 atoms