fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int arr[5] = {10,20,30,40,50};
  6.  
  7. cout << &(arr) << endl;
  8. cout << arr<<endl;
  9. cout << &arr <<endl;
  10.  
  11. cout <<endl;
  12.  
  13. cout << arr+1 <<endl;
  14. cout << &arr[1] <<endl;
  15. cout << &*(arr+1) <<endl;
  16. return 0;
  17. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
0x7ffd7cfaf3b0
0x7ffd7cfaf3b0
0x7ffd7cfaf3b0

0x7ffd7cfaf3b4
0x7ffd7cfaf3b4
0x7ffd7cfaf3b4