fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class A {
  5.  
  6. void aa(int aa){
  7. int a = aa;
  8. }
  9.  
  10. void aba(int aba){
  11. int a = aba;
  12. }
  13. void aaba(int aba){
  14. int a = aba;
  15. }
  16. void aaaba(int aba){
  17. int a = aba;
  18. }
  19.  
  20. };
  21.  
  22. class B {
  23. int a;
  24.  
  25. };
  26.  
  27. class C {
  28. char *b;
  29. };
  30.  
  31. int main() {
  32. // your code goes here
  33. cout << "size of A:" << sizeof(A) << endl;
  34. cout << "size of B:" << sizeof(B) << endl;
  35. cout << "size of C:" << sizeof(C) << endl;
  36. return 0;
  37. }
Success #stdin #stdout 0s 15224KB
stdin
Standard input is empty
stdout
size of A:1
size of B:4
size of C:8