Skip to content

Instantly share code, notes, and snippets.

@christian-candido
Created December 2, 2012 23:08
Show Gist options
  • Save christian-candido/4191501 to your computer and use it in GitHub Desktop.
Save christian-candido/4191501 to your computer and use it in GitHub Desktop.
Exemplo do uso de ponteiros
#include <stdio.h>
int main (void) {
int i = 2;
int *p;
int teste[10];
p = &i;
printf("%i\n", i);
printf("%p\n", p);
*p = 4;
printf("%i\n", i);
printf("%p\n", teste);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment