fork(3) download
  1. #include <stdio.h>
  2.  
  3. struct Msg_Header { // struct tag
  4. int n;
  5. };
  6.  
  7. typedef struct Msg_Header Msg_Header; // typedef synonym
  8.  
  9. int main(void) {
  10. Msg_Header msg_header;
  11.  
  12. printf("%zu\n", sizeof(struct Msg_Header));
  13. printf("%zu\n", sizeof(Msg_Header));
  14. printf("%zu\n", sizeof msg_header);
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
4
4
4