<- RETURN

The idea is similar to the solution of the previous question, except an additional idea.


double x;
scanf("%d%d",(int*)(&x), ((int*)(&x)+1));

*(int*)(&x) = *(int*)(&x) + *((int*)(&x)+1);
*((int*)(&x)+1) = *(int*)(&x) - *((int*)(&x)+1);
*(int*)(&x) = *(int*)(&x) - *((int*)(&x)+1);

printf("%d %d",*(int*)(&x), *((int*)(&x)+1));
(Similar to the solution of the previous question, if this does not work, convert +1's to -1's) The additional idea is barrowed from the classic question of swapping the content of two integers without using additional variables, whose solution is as follows.

int x,y;
scanf("%d%d",&x,&y);

x += y;
y = x-y;
x = x-y;

printf("%d %d",x,y);