Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #define size(W) sizeof (*W)/sizeof (*W[0])
- int main (){
- int t [][7]={{1,2,3,4,5,6,7}}; //Array bi original
- int (*p)[size(t)] = t; /*la nueva declaracion de arrays */;
- printf ("size de *p[]= %d \n",size(p));//size desde el puntero
- for (int i=0;i<size(p);i++) {printf ("dato = %d \n",(*p)[i]);}
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement