代码:
#include <iostream>
using namespace std;
//分配内存的时间,编译器编译期间
void main()
{
int a;
const int b = 10;
int c;
printf("&a:%d,&b:%d,&c:%d \n",&a,&b,&c);
system("pause");
}
结果:
代码:
#include <iostream>
using namespace std;
//分配内存的时间,编译器编译期间
void main()
{
int a;
const int b = 10;
int c;
printf("&a:%d,&b:%d,&c:%d \n",&a,&b,&c);
system("pause");
}
结果: