fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. int A[3] = { 10, 20, 30 };
  7. for (int i = 0; i < 3; i++) {
  8. // cout << A[i] << " ";
  9. cout << *(A + i) << " ";
  10. // cout << *A + i << " ";
  11. }
  12. cout << endl;
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0.01s 5432KB
stdin
Standard input is empty
stdout
10 20 30