THE ANSWER TO THIS PROBLEM IS C........I just need help understanding how to get
ID: 3858697 • Letter: T
Question
THE ANSWER TO THIS PROBLEM IS C........I just need help understanding how to get that answer
Thank you
Explanation / Answer
9.
Answer (d)
int is_inside(struct poin p, struct rectangle r)
{
return p.x >= r.lower_right_x && p.x <= r.upper_left_x && p.y >= r.lower_right_y && p.y <= r.upper_left_y);
}
because in the program it has given that, the struct stores the coordinates of the upper left and lower right corner of the rectangle.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.