Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int foo(int *p);
- /////////////////////////////////////////////////////////
- int main() //
- {
- int nArr[11]={11, 21, 32, 14, 57, 26, 78, 81, 79, 101, 141};
- foo(&nArr[10]);
- }
- /////////////////////////////////////////////////////////
- int foo(int *p) //
- {
- printf(" p = %d\n", p);
- printf("*p = %d\n", *p);
- return p[-9];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement