fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3. void foo() {}
  4. struct C {
  5. void bar();
  6. };
  7. int main() {
  8. cout << sizeof(&foo) << endl;
  9. cout << sizeof(&C::bar) << endl;
  10. return 0;
  11. }
Success #stdin #stdout 0s 3096KB
stdin
Standard input is empty
stdout
4
8