Advertisement
Patresss

Untitled

Sep 2nd, 2014
481
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.57 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. {
  4.     char a[5] = "xyzf";
  5.     char b[5] = { 'Z', 'Y', 'X'};
  6.     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
  7. //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);
  8.     printf("%d\n", *(*(d+1)+2) / **(d+1) + *(*(d+1)+1) / **(d+1));//15/-2 +10/-2 = -7-5=-12
  9.         printf("%d\n", (*(*d+1) + *(*d+2)) && **d);//1
  10. }
  11. //odp: -12 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement