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