#define _CRT_SECURE_NO_WARNINGS//强行去掉安全检查
#include<stdio.h>
#include<stdlib.h>
#include<Windows.h>
int *getA()
{
static int a = 10;
return &a;
}
void main()
{
int *p = getA();
printf("%p\n", p);
system("pause");
}
#include<stdio.h>
#include<stdlib.h>
#include<Windows.h>
int *getA()
{
static int a = 10;
return &a;
}
void main()
{
int *p = getA();
printf("%p\n", p);
system("pause");
}