fork download
  1. #include <stdio.h>
  2.  
  3. typedef struct arvore {
  4. unsigned int n;
  5. struct arvore *esq, *dir;
  6. } arvore;
  7.  
  8. int main(int argc, char **argv) {
  9. printf("%d\n", sizeof(arvore));
  10. printf("%d\n", sizeof(arvore *));
  11. printf("%d\n", sizeof(unsigned int));
  12. printf("%d\n", sizeof(unsigned int) + sizeof(arvore *) + sizeof(arvore *));
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 4248KB
stdin
Standard input is empty
stdout
24
8
4
20