What is the mass of 1 atom of carbon?
Both approaches are correct.  

Avogadro's number is $6.02214129\times 10^{23}$ and represents the number of carbon-12 atoms in 12 grams of unbound carbon-12 in the ground electronic state. 

$12$grams$/6.02214129\times 10^{23} = 1.9926467\times 10^{-23}$grams

The unified atomic mass unit (u) is $1.660538921 \times 10^{-24}$ grams

$12 \times 1.660538921 \times 10^{-24}$ grams $ = 1.9926467\times 10^{-23}$grams