Consider two possible functions for adding together two xyz points: struct point
ID: 3910784 • Letter: C
Question
Consider two possible functions for adding together two xyz points:
struct point add_points(struct point p1, struct point p2)
struct point* add_points(struct point* p1, struct point* p2)
Which of these functions should we expect to operate more efficiently and why?
Consider two possible functions for adding together two xyz points: struct point add_points(struct point p1, struct point p2) struct point* add_points(struct point* p1, struct point* p2) Which of these functions should we expect to operate more efficiently and why?
Explanation / Answer
struct point add_points(struct point p1, struct point p2)
struct point* add_points(struct point* p1, struct point* p2)
struct point* add_points(struct point* p1, struct point* p2) is more powerful than the struct point add_points(struct point p1, struct point p2).
Reason :
Therefore we can justify that struct point* add_points(struct point* p1, struct point* p2) is more powerful than the struct point add_points(struct point p1, struct point p2).
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.