fork(23) download
  1. #include <iostream>
  2.  
  3. template <size_t N>
  4. void myMethod ( const int (& intArray) [N] )
  5. {
  6. std::cout << "Array of " << N << " ints\n";
  7. return;
  8. }
  9.  
  10. int main()
  11. {
  12. int array[10] = {0};
  13. myMethod(array);
  14. return 0;
  15. }
Success #stdin #stdout 0.02s 2680KB
stdin
Standard input is empty
stdout
Array of 10 ints