Answer:
The code to this question can be given as:
Code:
p2.x=p1.y;
p2.y=p1.x;
Explanation:
In the question, it is given that a different type of POINT has been declared that is consisting of two arguments that are x, y. both variable datatype is double and variable p1, p2 are new points that have been declared. In that p1 variable has already been initialized that makes p2 the reflection of p1. So the code can be given above. In this p2.x variable holds the value of the p1.y and p2.y variable holds the value of p1.x.