fork download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. int arr[10];
  6.  
  7. for (unsigned int i = 0; i < 10; ++i)
  8. arr[i] = i * 10;
  9.  
  10. std::cout << arr[3] << ' ' << &arr[3] << '\n';
  11. std::cout << *(arr + 3) << ' ' << (arr + 3) << '\n';
  12. return 0;
  13. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
30 0xbfde8904
30 0xbfde8904