Hi all,

I have recently started to teach myself to program with C++ and have a question concerning casts.

What is the difference between -

i = sqrt(static_cast<double>(n))

and -

i = sqrt((double) n)

Many thanks,

Rob