fork download
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <iterator>
  4. #include <cstring>
  5.  
  6. int main()
  7. {
  8. char arr[] = "abcdefij";
  9.  
  10. std::copy(arr, arr + strlen(arr), std::ostream_iterator<char>(std::cout, ""));
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
abcdefij