Last active
September 27, 2015 17:09
-
-
Save jylock/7ed154e82f710bb98d21 to your computer and use it in GitHub Desktop.
Arrow Operator Syntax, usage, clarification, etc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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