You can not convert the full string to a double .Because when you convert you need just a single value .

Consider the code,

Code:
#include <stdio.h>
main()
{
       
        char c='a';
        double longt;
        longt=(double)c;
        printf("%f\n",longt);
}
Since c is a single character we can convert to a float .