```
#include<cstdio>
#include<iostream>
using namespace std;
char * get(){
char szlen[] = "hello";
int n = 3;
n = n^n;
//szlen[100] = 'c';
printf("%s\n", szlen);
return szlen;
}
int main(){
char * m = get();
printf("%s\n", m);
return 0;
}
#include<iostream>
using namespace std;
char * get(){
char szlen[] = "hello";
int n = 3;
n = n^n;
//szlen[100] = 'c';
printf("%s\n", szlen);
return szlen;
}
int main(){
char * m = get();
printf("%s\n", m);
return 0;
}
```
这段错误代码vs可以通过,它是不是给优化了?
全部评论
(0) 回帖