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