Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- #define TAM 1
- void f(int(*)[TAM]);
- void f(int (*x)[TAM])
- {
- printf ("funcion x= %d \n",x);
- printf (" funcion *(&x+1)= %d \n",*(x + 1));
- printf ("size en funcion =%d \n", (size_t) (*(x + 1)) - (size_t) x);
- };
- int main()
- {
- int array[] = {1};
- printf ("Main array= %d \n",array);
- printf (" Main *(&x+1)= %d \n",*(&array + 1));
- printf ("size en Main =%d \n", ( (size_t) *(&array + 1) - (size_t) array ));
- printf ("\n \n");
- f(&array);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement