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