fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. for (int index=0; index<3; index++)
  6. {
  7. cout << begin({123, 456, 789})[index];
  8. }
  9.  
  10. for (int value : {123, 456, 789})
  11. {
  12. cout << value;
  13. }
  14. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
123456789123456789