Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- /////////////////////////////////////////////////////////
- void foo(int *p)
- {
- for(int i=0;i < 9;i++)
- {
- printf("arr[%d] = %d\n", i, p[i]);
- }
- }
- /////////////////////////////////////////////////////////
- int main()
- {
- int arr[11]={0,1,2,3,4,5,6,7,8,9,10};
- foo(&arr[2]);
- printf("sizeof(int) = %d\n",sizeof(int));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement