fork download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. int* intArray = new int[0];
  6. intArray[0] = 3;
  7. std::cout << sizeof(*intArray) << std::endl;
  8. delete[] intArray;
  9. return 0;
  10. }
Success #stdin #stdout 0.01s 2856KB
stdin
Standard input is empty
stdout
4