Q:

There is, however, a string member function named c_str that we can often use to accomplish what we want

0

There is, however, a string member function named c_str that we can often use to accomplish what we want.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

char *str = s; // error: can't initialize a char* from a string
const char *str = s.c_str(); // ok

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now