Why does string::c_str() return a const char* when strings are allocated dynamically?

后端 未结 0 451
长发绾君心
长发绾君心 2020-12-24 03:09

Why does it return a constant char pointer? The C++11 standard says:

The pointer returned points to the internal array currently used by

相关标签:
回答
  • 消灭零回复
提交回复
热议问题