Typecasting________

pls explain the concept of typecasting used by sir in converting the string to char[] data type

hello @vector.9974

to convert string (c++) into char */char[] we use c_str function.

string.c_str() but becuase it will give const char * pointer we need to explicitly typecast into char*
thats why the complete syntax is
(char*) string.c_str();