Skip to content

Instantly share code, notes, and snippets.

@tene
Created July 16, 2011 22:53
Show Gist options
  • Select an option

  • Save tene/1086888 to your computer and use it in GitHub Desktop.

Select an option

Save tene/1086888 to your computer and use it in GitHub Desktop.
arrays aren't pointers
#include <stdio.h>
void main() {
int a[10];
int *b = a;
printf("%d %d\n", sizeof(a), sizeof(b));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment