fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. int array[4] = { 1, 2 , 3 , 4 };
  7. cout << array << endl;
  8. cout << &array << endl;
  9. cout << &array[0] << endl;
  10. cout << *(array + 1) << endl;
  11. return 0;
  12. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
0x7ffe6034b680
0x7ffe6034b680
0x7ffe6034b680
2