Skip to content

Instantly share code, notes, and snippets.

@masak
Created September 28, 2010 21:19
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 masak/601801 to your computer and use it in GitHub Desktop.
Save masak/601801 to your computer and use it in GitHub Desktop.
$ gcc -Wall pointer.c
$ ./a.out
140734799804976
$ cat pointer.c
#include <stdio.h>
int main(void) {
char s[] = "OH HAI";
char *sptr = s;
printf("%ld\n", (long)sptr);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment