Skip to content

Instantly share code, notes, and snippets.

@Hillmonkey
Created March 3, 2017 18:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hillmonkey/84a9507563f98fc46939fc1c23012ae7 to your computer and use it in GitHub Desktop.
Save Hillmonkey/84a9507563f98fc46939fc1c23012ae7 to your computer and use it in GitHub Desktop.
zero pointer
#include <stdio.h>
int main(void) {
char c[] = {1, 2];
printf("%p\n", &c[0]);
printf("%p\n", &0[c]);
return(0); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment