热门

最新

红包

立Flag

投票

同城

我的

发布
ghjhfssfgk
一个自闭的沙雕
6 年前
trueghjhfssfgk

内部静态变量的作用域和持续性的实验代码:
#include "pch.h"
#include <iostream>
int* x();
using namespace std;
int *c;

int main()
{
static int a;
cout <<*(x());
}
int* x()
{
static int w = 155;
c = &w;
return c;
}

CSDN App 扫码分享
分享
1
5
打赏
  • 复制链接
  • 举报
下一条:
界面分析
立即登录