#include #include struct Point { int x; int y; }; int calculateArea (struct Point pt1, struct Point pt2) { int result; result = abs(pt1.x - pt2.x) * abs (pt1.y - pt2.y) ; pt1.x = 2; printf ("The result is %d\n", result); printf ("The local copy is %d\n", pt1.x); return (result); } int main () { int res; struct Point point1, point2; point1.x = 0; point1.y = 0; point2.x = 2; point2.y = 3; res = calculateArea (point1, point2); printf ("The area is %d\n", res); printf ("First component is %d\n", point1.x); return 0; }