Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct str {int x; int y;};
- int a[5] = {1, 2, 3, 4, 5};
- int *p1, *p2;
- str s;
- p1 = &a[N%5+1]; //первая строка таблицы
- p2 = a+N/5+1; //2-я строка
- s.x = *p1; //3-я строка
- s.y = *p2++; //4-я строка
- *(p1-2)=s.y; //5-я строка
- p2=&s; //6-я строка
- p2->x=p1[1]; //7-я строка
- p2–>y=s.y; //8-я строка
- a[5]=s.x; //9-я строка
Add Comment
Please, Sign In to add comment