fork download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. int a[10];
  6. int* b = new int[10];
  7.  
  8. std::cout << sizeof(a) << ", " << sizeof(b) << "\n";
  9. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
40, 4