C: Ponteiro para variável

From AdonaiMedrado.Pro.Br
Jump to: navigation, search
#include <stdio.h>
 
int main(void)
{
	int i, *p;
	scanf("%d",&i);
	p=&i;
	*p*=2;
	printf("%d\n",i);
	printf("%p (&i)==%p (p)\n",&i,p);
	return 0;
}