Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Invalid pointer demo
int main(void) {
int *ptr;
int obj;
ptr = &obj;
/* ptr is valid */
/* ptr is now invalid */
return 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment