Question: C++ Help Given the following code: struct Point { int x; int y; }; struct Line { Point points[2]; }; int main () { Line
C++ Help
Given the following code:
struct Point { int x; int y; }; struct Line { Point points[2]; }; int main () { Line lineVar; } How would I access the x-coordinate of one of the points and the y-coordinate of the other of the points for linevar? I must access both points at least once
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
