Skip to content

Instantly share code, notes, and snippets.

@rayyee
Last active December 10, 2015 23:18
Show Gist options
  • Save rayyee/4508256 to your computer and use it in GitHub Desktop.
Save rayyee/4508256 to your computer and use it in GitHub Desktop.
结构指针变量
int main()
{
struct A
{
int a;
}varA,*p;
p = &varA;
p->a = 13;
printf("%d,%d,%d",p->a,(*p).a,varA.a);
return 0;
}
@rayyee
Copy link
Author

rayyee commented Jan 11, 2013

output::
13,13,13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment