摘要:
参考:链接C++ 字符数组有存储区,其值为存储区首地址;字符指针不分配存储区吗,"abc" 以常量形式存于静态数据区,指针指向该区首地址。 1 #include <iostream> 2 3 using namespace std; 4 5 int main() 6 { 7 char s1[] = "abc"; 8 char s2[] = "abc"; 9 10 const char s3[] = "abc";11 const char s4[] = "abc";12 13 cons 阅读全文