Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(void)
- {
- int i, x[10],*p=&x[0];
- for (i=0;i<10;i++)
- {
- *(p+i)=i+1;
- printf("Valor %d em %p \n",*(p+i),p+i); // *(p+i) endereço apontado por p+i
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement