printf("The area of a rectangle R with top left point (%d,%d)
and bottom right point (%d,%d) is %d\n",
R.topLeft.x, R.topLeft.y, R.bottomRight.x, R.bottomRight.y,
ComputeArea(&R, RectArea));
}
執行該程式的結應為
The area of a rectangle R with top left point (0,0) and
bottom right point (5,6) is 30