#include using std::cout;using std::endl;#include using std::strtod;int main(){ double d; const char *string1 = "51.2 are admitted"; char *stringPtr; d = strtod( string1, &stringPtr ); cout << d << endl; return 0;} 51.2