String to char array conversion

what does (char*)str.c_str();
mean

@sneha23
Can you end the entire code? This is quite vague