Make a struct Point with x and y, set (3, 4), print both.
A Point has two integers, x and y. You set them to 3 and 4 and print both. That is the whole geometry of a 2-D position in its smallest C form.
Point
3
4
3 4
Each step highlights the matching C line. Program output appears only when a line that prints actually runs.
Five questions. Pick one answer each, then Check answers. The correct choice turns green.
1. Output:
p.x and p.y.
2. The dot operator:
.
3. struct Point p; without assign:
Assign first.
4. A nested kind: Point inside a Player would be:
Nested dot.
5. Two %d codes print:
Format list.