Last active
December 20, 2015 12:59
-
-
Save liori/6134975 to your computer and use it in GitHub Desktop.
This code does not need a comment.
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
struct l { | |
struct l* next; | |
int value; | |
}; | |
int main(void) { | |
struct l elems[300]; | |
int i; | |
for (i=0; i<300; i++) { | |
elems[i].next = elems+i+1; | |
elems[i].value = i; | |
} | |
struct l ************************************************************** | |
*********************************************************************** | |
*********************************************************************** | |
****************************************************my_cute_pointer = elems; | |
printf("%d\n", (******************************************************* | |
*********************************************************************** | |
*********************************************************************** | |
***********************************************************my_cute_pointer).value); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment