I used to write it this way: $$\int \sqrt{x}dx=\int x^{\frac{1}{2}}dx=\frac{x^{\frac{3}{2}}}{\frac{3}{2}}+C=\frac{2}{3}x^{\frac{3}{2}}+C \tag{1}$$ because of the rule: $$\int x^ndx=\frac{x^{n+1}}{n+1}+C, n \neq -1.\tag{2}$$ But now I remember a rule that says I can write $x^{\frac{m}{n}}=\sqrt[n]{x^m}$ only when $x>0$. So in fact (1) is just finding the antiderivative on $(0,+\infty)$.
What about the antiderivative at $x=0$? I know that it should still be $\frac{2}{3}x^{\frac{3}{2}}+C$, or more precisely, $\frac{2}{3}\sqrt{x^3}+C$ (the same $C$) by taking its derivative but I don't know how to do it the right way.
So you've done most of the job. If we take a look at the domain of $f(x)=\sqrt{x}$, it is $x\in[0,+\infty)$. So that means that in that set there exists an antiderivative and you found it correctly, it is $\frac{2}{3}\sqrt{x^3}+C, C\in\mathbb{R}$. If we plug in $x=0$ we find that an antiderivative at that point is $C$.