C++20 sections · 1024 units
Open in Course

Quiz: Nested Structs

Test your understanding

Check Your Understanding

Given struct Line { Point start; Point end; }; Line line;, how do you access the x of the end point?

  1. A.line.end.x
  2. B.line.x.end
  3. C.line[end].x
  4. D.end.line.x
Start the roadmap to answer the quizzes and solve the challenges