fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int a[2] = {1, 2};
  7. cout << a << endl;
  8. cout << &a[0] << endl;
  9. cout << &a << endl;
  10. return 0;
  11. }
Success #stdin #stdout 0s 15224KB
stdin
Standard input is empty
stdout
0x7fff58946f20
0x7fff58946f20
0x7fff58946f20