fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. const int val = 5;
  7.  
  8. int arr[5] = {};
  9. volatile int begin = -5;
  10. volatile int end = 5;
  11. for (int i = begin; i < end; ++i)
  12. arr[i] = 10;
  13. cout << arr[0] << endl;
  14.  
  15. cout << *(volatile int*)&val << endl;
  16. }
Success #stdin #stdout 0s 5624KB
stdin
Standard input is empty
stdout
10
10