char* str1 = (char[]){ "i love" }; // 栈上内存str1,可修改内容 char* p[5] = { "abc","efg"}; // &p[i]是字符串常量地址,不可修改内容 char str2[][10] = { "abc","efg" }; // 二维字符数组
Powered by: 博客园 Copyright © 2024 乔55 Powered by .NET 9.0 on Kubernetes