fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void x(int y[])
  5. {
  6. cout << y << "\n";
  7. cout << &y << "\n";
  8. }
  9.  
  10. int main() {
  11. int a[10];
  12. cout << a << "\n";
  13. cout << &a << "\n";
  14. cout << &a[0] << "\n";
  15.  
  16. x(a);
  17.  
  18. return 0;
  19. }
Success #stdin #stdout 0.02s 2724KB
stdin
Standard input is empty
stdout
0xbff46cfc
0xbff46cfc
0xbff46cfc
0xbff46cfc
0xbff46ce0