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