Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- char a[5] = "xyzf";
- char b[5] = { 'Z', 'Y', 'X'};
- int d[2][3] = {{*a - *(a+1), *(a+4) + ++*(b+3) + 11} , {*(b+2)-*b, sizeof a + sizeof b, 15 * sizeof *a}};//-1, 12, -2, 10, 15
- //printf("{{*a - *(a+1)=%d, *(a+4) + ++*(b+3) + 11=%d , {*(b+2)-*b=%d, sizeof a + sizeof b=%d, 15 * sizeof *a=%d}}", *a - *(a+1), *(a+4) + ++*(b+3) + 11 , *(b+2)-*b, sizeof a + sizeof b, 15 * sizeof *a);
- printf("%d\n", *(*(d+1)+2) / **(d+1) + *(*(d+1)+1) / **(d+1));//15/-2 +10/-2 = -7-5=-12
- printf("%d\n", (*(*d+1) + *(*d+2)) && **d);//1
- }
- //odp: -12 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement