fork download
  1. #include <algorithm>
  2. #include <iostream>
  3. #include <iterator>
  4.  
  5. using namespace std;
  6.  
  7. int main() {
  8. int Array[] = { 10, 2, 3, 4, 8, 0 };
  9.  
  10. copy(crbegin(Array), crend(Array), ostream_iterator<int>(cout, " "));
  11. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
0 8 4 3 2 10