C++ const char to char.. how to CONVERT?..

Philippines
October 15, 2011 10:12am CST
How to convert const char data to char format in dev c++?.. thanks..
1 person likes this
1 response
@ram_cv (16513)
• India
15 Oct 11
Your query has taken me back to the olden days of my programming. The easiest way to convert from const charm to char is to use the reinterpret_cast operator. But you need to be careful when you use reinterpret_cast as you could easily violate the safety of the pointer. For more details check out the following links: http://msdn.microsoft.com/en-us/library/e0w9f63b%28v=vs.80%29.aspx http://stackoverflow.com/questions/833034/how-to-convert-const-char-to-char Cheers! Ram