Created
November 8, 2016 16:40
-
-
Save nadavmatalon/025289c614cb5d3b9b6ff3a050eedbcf to your computer and use it in GitHub Desktop.
Pointers & Addresses
This file contains 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
int i = 42; | |
int *p = &i; | |
// '*' means 'points to' and '&' means 'address of' ('p' is a pointer to the address of integer 'i') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment