fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void f( const int (&x)[100] ){}
  5.  
  6. int main()
  7. {
  8. int x[100], y[120];
  9. f(x);
  10. f(reinterpret_cast<int(&)[100]>(y));
  11. }
Success #stdin #stdout 0s 4400KB
stdin
Standard input is empty
stdout
Standard output is empty