Skip to the task
Layout
Back to classic view

You are looking at lesson 10. Your place is still lesson 3, task 1: Conditions.

CHECKTask 11 of 17 · step 6: Drills: check yourself

A copy through =

What does it print? (Point is a struct with int x, y.)

Point a = {1, 2};
Point b = a;
b.x = 5;
printf("%d %d\n", a.x, b.x);
Stuck?

1 5: b is a separate copy.