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