fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. double array[] { 1.0, 2.0, 3.0 };
  7. cout << sizeof(array)/sizeof(*array) << endl;
  8. double* pointer = array;
  9. cout << sizeof(pointer)/sizeof(*pointer) << endl;
  10. return 0;
  11. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
3
0