Skip to content

Instantly share code, notes, and snippets.

@jylock
Last active September 27, 2015 17:09
Show Gist options
  • Select an option

  • Save jylock/7ed154e82f710bb98d21 to your computer and use it in GitHub Desktop.

Select an option

Save jylock/7ed154e82f710bb98d21 to your computer and use it in GitHub Desktop.
Arrow Operator Syntax, usage, clarification, etc
struct foo
{
int x;
float y;
};
struct foo var;
struct foo* pvar;
var.x = 5;
(&var)->y = 14.3;
pvar->y = 22.4;
(*pvar).x = 6;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment