fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <stdlib.h>
  4.  
  5. typedef struct {
  6. char *nome;
  7. } Tipo1;
  8.  
  9. typedef struct {
  10. char nome[30];
  11. } Tipo2;
  12.  
  13. int main(void) {
  14. Tipo1 x;
  15. Tipo2 y;
  16. printf("%zd\n", sizeof(x));
  17. printf("%zd\n", sizeof(y));
  18. }
  19.  
  20. //http://pt.stackoverflow.com/q/181609/101
Success #stdin #stdout 0s 4460KB
stdin
Standard input is empty
stdout
8
30