Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/20/04 15:17
Read: times


 
#68899 - RE: double to char
Responding to: ???'s previous message
"how to convert a double value to char*?

double d_num;
char *ch_ptr;

ch_ptr = (char *)(&d_num);

Always ask correct question if need with propper suggestion."

Well I'm sorry Oleg, but if you're going to be pedantic:

You have cast a 'pointer to double' to a 'pointer to char' which is neither a literal interpretation of the OP's question nor a useful one, merely a wrong one.


List of 8 messages in thread
TopicAuthorDate
double to char            01/01/70 00:00      
   RE: double to char            01/01/70 00:00      
      RE: double to char            01/01/70 00:00      
   RE: double to char            01/01/70 00:00      
      RE: double to char            01/01/70 00:00      
         RE: double to char            01/01/70 00:00      
   RE: double to char            01/01/70 00:00      
      RE: double to char            01/01/70 00:00      

Back to Subject List