fork(1) download
  1. #include <iostream>
  2.  
  3. static void test(void)
  4. {
  5. printf("%s [%d]\n", __func__, __LINE__);
  6. }
  7.  
  8. static void test(int a)
  9. {
  10. printf("%s [%d] %d\n", __func__, __LINE__, a);
  11. }
  12.  
  13. int main()
  14. {
  15. using t_pf1 = void (*)(void);
  16. using t_pf2 = void (*)(int);
  17. ::std::cout << (uintptr_t) t_pf1{&test} << "\n"
  18. << (uintptr_t) t_pf2{&test} << ::std::endl;
  19. return 0;
  20. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
47256817994336
47256817994368