fork download
  1. #include <cstdio>
  2. using namespace std;
  3.  
  4. class A
  5. {
  6. public:
  7. char B(int, double, A&);
  8. };
  9.  
  10. int main()
  11. {
  12. double* d;
  13. int* i;
  14. typedef double (*dffic) (float, int, char);
  15. typedef char (A::*cA) (int, double, A&);
  16. printf("%d\n", sizeof(d));
  17. printf("%d\n", sizeof(i));
  18. printf("%d\n", sizeof(dffic));
  19. printf("%d\n", sizeof(cA));
  20.  
  21. return 0;
  22. }
Success #stdin #stdout 0s 2896KB
stdin
Standard input is empty
stdout
4
4
4
8