#include<iostream>
using namespace std;
char* func() {
char* s = "abc";//正常
//char s[] = "abc";//乱码
return s;
}
int main(){
char* t = func();
cout << t << endl;
system("pause");
return 0;
}
char* s与char s[]的区别
最新推荐文章于 2021-03-23 16:02:51 发布