[填词] 博士之歌# Music - 天籁之音
c*e
1 楼
const std::string s("Hello World");
char *c=s.c_str();
float f=strlen(c);
Referring the scenario above, what causes the error?
a) c is not a pointer to const.
b) You cannot assign a char* literal to a string constructor.
c) You cannot assign a literal character to a char* variable.
char *c=s.c_str();
float f=strlen(c);
Referring the scenario above, what causes the error?
a) c is not a pointer to const.
b) You cannot assign a char* literal to a string constructor.
c) You cannot assign a literal character to a char* variable.