Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- void ppr1(int *p)
- {
- printf("%p\n",(void*)p);
- }
- void ppr2(int p[])
- {
- printf("%p\n",(void*)p);
- }
- int main()
- {
- int arr[10]={0};
- int *pArr;
- pArr = arr;
- printf("%p %p\n",(void*)arr, (void*)pArr);
- ppr1(arr);
- ppr2(arr);
- ppr1(pArr);
- ppr2(pArr);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment