2
The easiest solution is to use atof. Therefore, you would be writing something like this:
printf("Square root from %s is %f", argv[1], sqrt(atof(argv[1])));
Of course, you could look into higher-level alternatives like C++11's std::stod, but it would be an overkill for this simple case, but if...