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