You are here:

C++/conversion of a char* to float?

Advertisement


Question
I am a student of Computer Programming.I have to ask whether we convert a char* to float as we can float to char* with ftoa() function in C++ if not what will be the alternative way.
  Thanks!i am waiting for your favour;
Good Bye

Answer
Hai dear M Usman Saleem !

 In handy you have a built in function atof() to convert a char* to float  , and using fcvt() to convert a float to char* , both functions available under stdlib.h header file!


Thanks and Regards !
Prince M.Premnath

C++

All Answers


Answers by Expert:


Ask Experts

Volunteer


Prince M. Premnath

Expertise

Years of research in C/C++ Will bring you all facts regarding , OOPS , SVGA , MOUSE , BIOS , IVT , Feel free to query me :-)

Experience

More than 5 years

Education/Credentials
MCA

©2016 About.com. All rights reserved.