fork(2) download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. struct Foo
  6. {
  7. virtual void foo() = 0;
  8. };
  9.  
  10. int main()
  11. {
  12. cout << "size=" << sizeof(Foo) << endl;
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
size=4