fork(4) download
  1. #include <iostream>
  2.  
  3. template <typename T>
  4. void print(const T array[], size_t SIZE)
  5. {
  6. for(size_t i = 0; i < SIZE; i++)
  7. std::cout << array[i] << " ";
  8. }
  9. int main() {
  10. int x[] = {1, 2, 3};
  11. print(x, sizeof(x) / sizeof(int));
  12. return 0;
  13. }
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
1 2 3