I know that relative atomic mass of $\ce{^{12}C}$ is $12~\mathrm{u}$.
Therefore mass of $1~\mathrm{mol}~\ce{C} = 12~\mathrm{g}$ \begin{align} \text{mass of }6.022\cdot 10^{23} \text{ C atoms} &= 12~\mathrm{g}\\ \text{mass of }1 \text{ C atom} &= \frac{12~\mathrm{g}}{6.022\cdot10^{23}}\\ &=\boxed{1.99\cdot10^{-23}~\mathrm{g}},\\ \end{align}
but
\begin{align} 1~\mathrm{u} &= 1.66\cdot10^{-24}~\mathrm{g}\\ \implies \text{Mass of }1~\ce{^{12}C}\text{ atom} &= 1.66\cdot 12 \cdot 10^{-24}~\mathrm{g}\\ &= 19.92\cdot 10^{-24}~\mathrm{g}\\ &= 1.992\cdot 10^{-23}~\mathrm{g}.\\ \end{align}
Which is correct?
Also what is dimension formula of relative atomic mass, molar mass?
Why is unit of molar mass $\dfrac{\text{gram}}{\text{mole}}$ and not just $\text{gram}$ Since when has this $\text{mol}$ become a unit? It's just a number.