fork download
  1. #include<iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. int x[5];
  7. int *y = new int[5];
  8.  
  9. cout << "&x : " << &x << endl;
  10. cout << "x : " << x << endl;
  11.  
  12. cout << endl;
  13.  
  14. cout << "&y : " << &y << endl;
  15. cout << "y : " << y << endl;
  16.  
  17. return 0;
  18. }
Success #stdin #stdout 0.01s 2856KB
stdin
Standard input is empty
stdout
&x : 0xbfec4ccc
x : 0xbfec4ccc

&y : 0xbfec4ce0
y : 0x8961008