fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. double mean_array( double array[] )
  6. {
  7. cout << sizeof(array) << endl;
  8. cout << sizeof(double*) << endl;
  9. cout << sizeof(array[0]) << endl;
  10. return 0;
  11. }
  12.  
  13. double test1( double array[] )
  14. {
  15. return 0;
  16. }
  17.  
  18. double test2( double *array )
  19. {
  20. return 0;
  21. }
  22.  
  23. int main()
  24. {
  25. double ar[6] = { 5, 10, 15, 20, 25, 30 };
  26. mean_array(ar);
  27. }
Success #stdin #stdout 0s 2724KB
stdin
Standard input is empty
stdout
4
4
8