Skip to content

Instantly share code, notes, and snippets.

@shumon84
Created September 4, 2017 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shumon84/d067f63b315a28ce598bb6745810a705 to your computer and use it in GitHub Desktop.
Save shumon84/d067f63b315a28ce598bb6745810a705 to your computer and use it in GitHub Desktop.
#include<stdio.h>
int main(void)
{
printf("sizeof(struct hoge) = %lu byte\n",sizeof(struct {short a;char b[2];}));
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment