fork download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. char a[] = { 'H', 'e', 'l', 'l', 'o' };
  6. for (auto it = std::begin(a); it != std::end(a); ++it)
  7. {
  8. std::cout << *it;
  9. }
  10. std::cout << std::endl;
  11. }
  12.  
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
Hello