Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main (void) {
- int a[] = {1,5,-3},
- *p = a,
- (*pos)[2] = (int(*)[2])p;
- printf ("{% d, % d}\n{% d, x}\n", pos[0][0], pos[0][1], pos[1][0]);
- // printf("%d \n",(pos[1][1])); /* Undefined Behavior */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement