Skip to content

Instantly share code, notes, and snippets.

@antonijn
Created September 12, 2013 14:56
Show Gist options
  • Save antonijn/6538863 to your computer and use it in GitHub Desktop.
Save antonijn/6538863 to your computer and use it in GitHub Desktop.
struct asdf vs asdf_t
// typedef
typedef struct
{
int x, y, z;
} asdf_t;
int main(void)
{
asdf_t instance;
instance.x = 0;
return 0;
}
// vs struct
struct asdf
{
int x, y, z;
};
int main(void)
{
struct asdf instance;
asdf.x = 0;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment