typedef struct rem{
int addr;
char addrbuf[32];
} foo;
Both of these codes return the same results
foo addr;
printf("size is: %d\n",sizeof addr);
printf("size is: %d\n",sizeof (foo));
size is: 36
size is: 36
But when should we use sizeof
with and without parentheses?