fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5. int main()
  6. {
  7.  
  8. const int ARRAY_LEN = 5;
  9. int MyNumbers[ARRAY_LEN] = { -55, 35, 9889, 0, 45 };
  10.  
  11. for (int nIndex = ARRAY_LEN - 1; nIndex >= 0; --nIndex)
  12. cout << "MyNumbers[" << nIndex << "] =" << MyNumbers[nIndex] << endl;
  13.  
  14.  
  15. system("PAUSE");
  16. return 0;
  17.  
  18. }
Success #stdin #stdout #stderr 0s 3412KB
stdin
Standard input is empty
stdout
MyNumbers[4] =45
MyNumbers[3] =0
MyNumbers[2] =9889
MyNumbers[1] =35
MyNumbers[0] =-55
stderr
sh: 1: PAUSE: not found